Deploy staging on App Engine standard
This commit is contained in:
parent
0866376af6
commit
154b732540
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -67,6 +67,6 @@
|
|||
"tempy": "^0.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "10.x"
|
||||
"node": "10.x.x"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue