I want to run ghost on GAE standard environment. But I can not it. What is happens?
server.js
const ghost = require('ghost');
const port = process.env.PORT || 8080;
ghost().then(function (ghostServer) {
ghostServer.rootApp.listen(port);
});
Error Messages
INFO This request caused a new process to be started for your application and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.
ERROR A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. (Error code 204)
I've gotten Error code 204 once before. It was when I discovered a memory leak in app engine's version of python's ssl library that was crashing my instances every few minutes. I had to work with Google Cloud Support to figure that out.
I've experienced another issue where I had to change the source code of a python lib because it would try to bind to a port and fail. That was actually fine because it failed gracefully, the problem I was trying to solve being that it would sometimes hang for 10 minutes.
According to this, NodeJS on GAE Standard is in beta:
So I would wouldn't stray too far from the example app they provided:
https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/appengine/hello-world/standard
Options