In startup_script.sh
update environment
variables like expected.
-
Set
NODE_ENV
toproduction
or anything else butyour-environment
if you want to run the app outside Google Cloud Platform (See https://github.com/GoogleCloudPlatform/google-cloud-node#elsewhere) IfNODE_ENV
is set toproduction
, the you don't need to setGCLOUD_PROJECT
andGCLOUD_KEY_FILENAME
-
Set
GCLOUD_TOPIC
andGCLOUD_SUBSCRIPTION
accordingly.
- Run
. deploy_single.sh
or. deploy.sh
depending if you need a single instance or not. - Run
. teardown_single.sh
or. teardown.sh
accordingly.