Monday, 8 May 2017

How to deploy nodejs code from local machine to google app engine

I have just started with nodejs and app engine. I am following the tutorial

https://cloud.google.com/nodejs/tutorials

1) I have created a project then cloned the nodejs-mvms-quickstart repository.

2) Opened Development/source code and opened the nodejs-mvms-quickstart/1-hello-world

3) and started the node server

npm start

This is working fine. Now I want to deploy my nodejs application from my local server without copying to github and cloning on the server.

For this I am using following command

gcloud app deploy

but this is showing following errors

If this is your first deployment, this may take a while...done.

Beginning deployment of service [default]...
Building and pushing image for service [default]
WARNING: No node version specified.  Please add your node version, see https://d
ocs.npmjs.com/files/package.json#engines
Some files were skipped. Pass `--verbosity=info` to see which ones.
You may also view the gcloud log file, found at
[C:\Users\Sunil Garg\AppData\Roaming\gcloud\logs\2017.05.07\20.38.59.221000.log]
.
Started cloud build [1cd2979e-527b-4d68-b430-31471534246e].
To see logs in the Cloud Console: https://console.cloud.google.com/gcr/builds/1c
d2979e-527b-4d68-b430-31471534246e?project=help-coin
ERROR: gcloud crashed (error): [Errno 10054] An existing connection was forcibly
 closed by the remote host

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics

what is the issue? Am i missing something?



via Sunil Garg

No comments:

Post a Comment