Deploy staging on App Engine standard

This commit is contained in:
Michael Jackson 2019-01-29 12:45:38 -08:00
parent 0866376af6
commit 154b732540
3 changed files with 12 additions and 11 deletions

View File

@ -1,10 +1,5 @@
runtime: nodejs
env: flex
resources:
cpu: 1
memory_gb: 0.5
disk_size_gb: 10
manual_scaling:
instances: 1
runtime: nodejs10
env: standard
instance_class: B4
basic_scaling:
max_instances: 1

View File

@ -29,6 +29,12 @@ app.enable('trust proxy');
app.use(logger);
app.use(staticFiles);
// Special startup request from App Engine
// https://cloud.google.com/appengine/docs/standard/nodejs/how-instances-are-managed
app.get('/_ah/start', (req, res) => {
res.status(200).end();
});
app.get('/', serveMainPage);
app.use(redirectLegacyURLs);

View File

@ -67,6 +67,6 @@
"tempy": "^0.2.1"
},
"engines": {
"node": "10.x"
"node": "10.x.x"
}
}