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 3030def main ():
3131 # When deployed to App Engine, the `GAE_ENV` environment variable will be
3232 # set to `standard`
33- if os .environ .get ('GAE_ENV' ):
33+ if os .environ .get ('GAE_ENV' ) == 'standard' :
3434 # If deployed, use the local socket interface for accessing Cloud SQL
3535 host = '/cloudsql/{}' .format (db_connection_name )
3636 else :
Original file line number Diff line number Diff line change 2525
2626# When deployed to App Engine, the `GAE_ENV` environment variable will be
2727# set to `standard`
28- if os .environ .get ('GAE_ENV' ):
28+ if os .environ .get ('GAE_ENV' ) == 'standard' :
2929 # If deployed, use the local socket interface for accessing Cloud SQL
3030 host = '/cloudsql/{}' .format (db_connection_name )
3131else :
Original file line number Diff line number Diff line change 3030def main ():
3131 # When deployed to App Engine, the `GAE_ENV` environment variable will be
3232 # set to `standard`
33- if os .environ .get ('GAE_ENV' ):
33+ if os .environ .get ('GAE_ENV' ) == 'standard' :
3434 # If deployed, use the local socket interface for accessing Cloud SQL
3535 host = '/cloudsql/{}' .format (db_connection_name )
3636 else :
Original file line number Diff line number Diff line change 2525
2626# When deployed to App Engine, the `GAE_ENV` environment variable will be
2727# set to `standard`
28- if os .environ .get ('GAE_ENV' ):
28+ if os .environ .get ('GAE_ENV' ) == 'standard' :
2929 # If deployed, use the local socket interface for accessing Cloud SQL
3030 host = '/cloudsql/{}' .format (db_connection_name )
3131else :
You can’t perform that action at this time.
0 commit comments