We've got a hefty little node app and wanted to try out the google cloud deployment suite to get it online, however our deployments are always resulting in a page with a 500 server error.
Normally I'd provide more information, errors, etc, but I was hoping someone more knowledgeable could guide me in where I can hunt down that information. Nothing of note is appearing in the gcloud terminal when we gcloud preview app deploy
, just a bunch of preparing
and pushing
and a final deployed module [default] to ...
message. However, navigating to the URL gives us a 500 server error:
Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.
Taking a peek at the response headers doesn't give any more information, so I've poked through the stackdriver/logs, but the only thing there is a bunch of /_ah/background
GETs with no sign of any of our requests.
Where can we be looking to start debugging this issue? It's a node app with an node/express backend, react frontend, and webpack builder.
EDIT: Here's a screenshot of the app engine dashboard.
Our app.yaml
:
runtime: nodejs
vm: true
skip_files:
- ^(.*/)?.*/node_modules/.*$
Our package.json
:
"scripts": {
"test": "karma start",
"watch": "watch 'npm run test' client/",
"clean": "rm -rf dist",
"webpack-prod": "NODE_ENV=production webpack --progress -p",
"server-prod": "NODE_ENV=production node ./index.js",
"prestart": "npm run webpack-prod",
"start": "npm run server-prod",
},
"server-prod": "NODE_ENV=production node index.js",
and it should work. – Ladysmith