forked from GoogleCloudPlatform/python-docs-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.yaml
More file actions
21 lines (18 loc) · 619 Bytes
/
app.yaml
File metadata and controls
21 lines (18 loc) · 619 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
runtime: python
vm: true
entrypoint: gunicorn -b :$PORT main:app
runtime_config:
python_version: 3
#[START env]
env_variables:
# Replace user, password, database, project, and instance with the values obtained
# when configuring your Cloud SQL instance.
SQLALCHEMY_DATABASE_URI: >-
mysql+pymysql://USER:PASSWORD@/DATABASE?unix_socket=/cloudsql/PROJECT:REGION:INSTANCE
#[END env]
#[START cloudsql_settings]
# Replace project and instance with the values obtained when configuring your
# Cloud SQL instance.
beta_settings:
cloud_sql_instances: PROJECT:REGION:INSTANCE
#[END cloudslq_settings]