Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appengine/standard_python37/cloudsql/main_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
def main():
# When deployed to App Engine, the `GAE_ENV` environment variable will be
# set to `standard`
if os.environ.get('GAE_ENV'):
if os.environ.get('GAE_ENV') == 'standard':
# If deployed, use the local socket interface for accessing Cloud SQL
host = '/cloudsql/{}'.format(db_connection_name)
else:
Expand Down
2 changes: 1 addition & 1 deletion appengine/standard_python37/cloudsql/main_mysql_pooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

# When deployed to App Engine, the `GAE_ENV` environment variable will be
# set to `standard`
if os.environ.get('GAE_ENV'):
if os.environ.get('GAE_ENV') == 'standard':
# If deployed, use the local socket interface for accessing Cloud SQL
host = '/cloudsql/{}'.format(db_connection_name)
else:
Expand Down
2 changes: 1 addition & 1 deletion appengine/standard_python37/cloudsql/main_postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
def main():
# When deployed to App Engine, the `GAE_ENV` environment variable will be
# set to `standard`
if os.environ.get('GAE_ENV'):
if os.environ.get('GAE_ENV') == 'standard':
# If deployed, use the local socket interface for accessing Cloud SQL
host = '/cloudsql/{}'.format(db_connection_name)
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

# When deployed to App Engine, the `GAE_ENV` environment variable will be
# set to `standard`
if os.environ.get('GAE_ENV'):
if os.environ.get('GAE_ENV') == 'standard':
# If deployed, use the local socket interface for accessing Cloud SQL
host = '/cloudsql/{}'.format(db_connection_name)
else:
Expand Down