gcloud-deploy Boilerplate
A boilerplate Express application that can be deployed to Google Compute Engine
$ git clone [email protected]:stephenplusplus/gcloud-deploy-sample-app
$ cd gcloud-deploy-sample-app
$ npm install
See the Prerequisites section of the gcloud-deploy documention for how to get started.
Once you are ready to deploy, edit the gcloudDeploy
object in the package.json
file with your projectId and the path to your key file.
$ npm run deploy
Then, monitor the output to see the server initialize. Each output line should follow the format of:
[TIMESTAMP] ([SERVER IP]): [LOG]
If all goes well, the output will take a long break. It should look something like this:
2015-10-19T15:43:01.834586+00:00 (http://104.197.215.90): > [email protected] start /opt/app
2015-10-19T15:43:01.834705+00:00 (http://104.197.215.90): > node server.js
At this point, visit the IP address in parentheses to see your app running. Keep your terminal open to see the log output continue.