forked from xinyunh0929/golang-samples
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.yaml
27 lines (24 loc) · 947 Bytes
/
app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
runtime: go
env: flex
automatic_scaling:
min_num_instances: 1
#[START env]
env_variables:
# See https://github.com/go-sql-driver/mysql
#
# Replace INSTANCE_CONNECTION_NAME with the same value as in the
# beta_settings section below.
MYSQL_CONNECTION: user:password@unix(/cloudsql/INSTANCE_CONNECTION_NAME)/dbname
#
# If you're testing locally using the Cloud SQL proxy with TCP,
# instead use the "tcp" dialer by setting the environment variable:
# MYSQL_CONNECTION=user:password@tcp(127.0.0.1:3306)/dbname
#[END env]
#[START cloudsql_settings]
# Replace INSTANCE_CONNECTION_NAME with the value obtained when configuring your
# Cloud SQL instance, available from the Google Cloud Console or from the Cloud SDK.
# For SQL v2 instances, this should be in the form of "project:region:instance".
# Cloud SQL v1 instances are not supported.
beta_settings:
cloud_sql_instances: INSTANCE_CONNECTION_NAME
#[END cloudsql_settings]