forked from xinyunh0929/golang-samples
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.yaml
27 lines (24 loc) · 952 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://godoc.org/github.com/lib/pq
#
# Replace INSTANCE_CONNECTION_NAME with the same value as in the
# beta_settings section below.
POSTGRES_CONNECTION: "user=postgres password=pw dbname=db host=/cloudsql/INSTANCE_CONNECTION_NAME"
#
# If you're testing locally using the Cloud SQL proxy with TCP,
# instead set this environment variable:
# POSTGRES_CONNECTION="user=postgres password=pw dbname=db sslmode=disable"
#[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]