Scale automatically in production

This commit is contained in:
Michael Jackson 2019-01-26 22:49:01 -08:00
parent 21ce9c50cf
commit 8cab65a4f6
3 changed files with 12 additions and 3 deletions

View File

@ -19,12 +19,14 @@ deploy:
skip_cleanup: true
keyfile: service-account-staging.json
project: unpkg-staging
config: app-staging.yaml
on:
branch: gae-staging
- provider: gae
skip_cleanup: true
keyfile: service-account.json
project: unpkg-gcp
config: app.yaml
on:
branch: gae
- provider: script

10
app-staging.yaml Normal file
View File

@ -0,0 +1,10 @@
runtime: nodejs
env: flex
resources:
cpu: 1
memory_gb: 0.5
disk_size_gb: 10
manual_scaling:
instances: 1

View File

@ -1,9 +1,6 @@
runtime: nodejs
env: flex
# https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml
manual_scaling:
instances: 1
resources:
cpu: 1
memory_gb: 0.5