Deploy staging on App Engine standard
This commit is contained in:
parent
0866376af6
commit
154b732540
|
@ -1,10 +1,5 @@
|
||||||
runtime: nodejs
|
runtime: nodejs10
|
||||||
env: flex
|
env: standard
|
||||||
|
instance_class: B4
|
||||||
resources:
|
basic_scaling:
|
||||||
cpu: 1
|
max_instances: 1
|
||||||
memory_gb: 0.5
|
|
||||||
disk_size_gb: 10
|
|
||||||
|
|
||||||
manual_scaling:
|
|
||||||
instances: 1
|
|
||||||
|
|
|
@ -29,6 +29,12 @@ app.enable('trust proxy');
|
||||||
app.use(logger);
|
app.use(logger);
|
||||||
app.use(staticFiles);
|
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.get('/', serveMainPage);
|
||||||
|
|
||||||
app.use(redirectLegacyURLs);
|
app.use(redirectLegacyURLs);
|
||||||
|
|
|
@ -67,6 +67,6 @@
|
||||||
"tempy": "^0.2.1"
|
"tempy": "^0.2.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "10.x"
|
"node": "10.x.x"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue