In startup_script.sh update environment variables like expected.
-
Set
NODE_ENVtoproductionor anything else butyour-environmentif you want to run the app outside Google Cloud Platform (See https://github.com/GoogleCloudPlatform/google-cloud-node#elsewhere) IfNODE_ENVis set toproduction, the you don't need to setGCLOUD_PROJECTandGCLOUD_KEY_FILENAME -
Set
GCLOUD_TOPICandGCLOUD_SUBSCRIPTIONaccordingly.
- Run
. deploy_single.shor. deploy.shdepending if you need a single instance or not. - Run
. teardown_single.shor. teardown.shaccordingly.