Lifecycle request handlers for express apps running in Google App Engine Managed VMs
npm i --save express-appengine-handlers
var express = require('express'),
aeHandlers = require('express-appengine-handlers'),
app = express();
app.use(aeHandlers);
app.listen(1337);
You can now test by going to http://localhost:1337/_ah/health
App Engine Flex only supports /_ah/health
at this time - you should not process, or handle /_ah/start
or /_ah/stop
via your application code.