Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit db4b00c

Browse filesBrowse files
fatcat2kurtisvg
authored andcommitted
Fix Cloud SQL env var names in app.yaml(GoogleCloudPlatform#2190)
* Changed env var to match between app.yaml and main.py in cloud_sql/mysql * Made the same fixes for the postgres example.
1 parent 861be02 commit db4b00c
Copy full SHA for db4b00c

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎cloud-sql/mysql/sqlalchemy/app.yaml

Copy file name to clipboardExpand all lines: cloud-sql/mysql/sqlalchemy/app.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runtime: python37
1717
# Remember - storing secrets in plaintext is potentially unsafe. Consider using
1818
# something like https://cloud.google.com/kms/ to help keep secrets secret.
1919
env_variables:
20-
CLOUD_SQL_INSTANCE_NAME: <MY-PROJECT>:<INSTANCE-REGION>:<MY-DATABASE>
20+
CLOUD_SQL_CONNECTION_NAME: <MY-PROJECT>:<INSTANCE-REGION>:<MY-DATABASE>
2121
DB_USER: my-db-user
2222
DB_PASS: my-db-pass
2323
DB_NAME: my_db

‎cloud-sql/postgres/sqlalchemy/app.yaml

Copy file name to clipboardExpand all lines: cloud-sql/postgres/sqlalchemy/app.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runtime: python37
1717
# Remember - storing secrets in plaintext is potentially unsafe. Consider using
1818
# something like https://cloud.google.com/kms/ to help keep secrets secret.
1919
env_variables:
20-
CLOUD_SQL_INSTANCE_NAME: <MY-PROJECT>:<INSTANCE-REGION>:<MY-DATABASE>
20+
CLOUD_SQL_CONNECTION_NAME: <MY-PROJECT>:<INSTANCE-REGION>:<MY-DATABASE>
2121
DB_USER: my-db-user
2222
DB_PASS: my-db-pass
2323
DB_NAME: my_db

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.