File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
appengine/standard_python37/cloudsql Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 30
30
def main ():
31
31
# When deployed to App Engine, the `GAE_ENV` environment variable will be
32
32
# set to `standard`
33
- if os .environ .get ('GAE_ENV' ):
33
+ if os .environ .get ('GAE_ENV' ) == 'standard' :
34
34
# If deployed, use the local socket interface for accessing Cloud SQL
35
35
host = '/cloudsql/{}' .format (db_connection_name )
36
36
else :
Original file line number Diff line number Diff line change 25
25
26
26
# When deployed to App Engine, the `GAE_ENV` environment variable will be
27
27
# set to `standard`
28
- if os .environ .get ('GAE_ENV' ):
28
+ if os .environ .get ('GAE_ENV' ) == 'standard' :
29
29
# If deployed, use the local socket interface for accessing Cloud SQL
30
30
host = '/cloudsql/{}' .format (db_connection_name )
31
31
else :
Original file line number Diff line number Diff line change 30
30
def main ():
31
31
# When deployed to App Engine, the `GAE_ENV` environment variable will be
32
32
# set to `standard`
33
- if os .environ .get ('GAE_ENV' ):
33
+ if os .environ .get ('GAE_ENV' ) == 'standard' :
34
34
# If deployed, use the local socket interface for accessing Cloud SQL
35
35
host = '/cloudsql/{}' .format (db_connection_name )
36
36
else :
Original file line number Diff line number Diff line change 25
25
26
26
# When deployed to App Engine, the `GAE_ENV` environment variable will be
27
27
# set to `standard`
28
- if os .environ .get ('GAE_ENV' ):
28
+ if os .environ .get ('GAE_ENV' ) == 'standard' :
29
29
# If deployed, use the local socket interface for accessing Cloud SQL
30
30
host = '/cloudsql/{}' .format (db_connection_name )
31
31
else :
You can’t perform that action at this time.
0 commit comments