Skip to content

Commit 8cab65a

Browse files
committed
Scale automatically in production
1 parent 21ce9c5 commit 8cab65a

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ deploy:
1919
skip_cleanup: true
2020
keyfile: service-account-staging.json
2121
project: unpkg-staging
22+
config: app-staging.yaml
2223
on:
2324
branch: gae-staging
2425
- provider: gae
2526
skip_cleanup: true
2627
keyfile: service-account.json
2728
project: unpkg-gcp
29+
config: app.yaml
2830
on:
2931
branch: gae
3032
- provider: script

app-staging.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
runtime: nodejs
2+
env: flex
3+
4+
resources:
5+
cpu: 1
6+
memory_gb: 0.5
7+
disk_size_gb: 10
8+
9+
manual_scaling:
10+
instances: 1

app.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
runtime: nodejs
22
env: flex
33

4-
# https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml
5-
manual_scaling:
6-
instances: 1
74
resources:
85
cpu: 1
96
memory_gb: 0.5

0 commit comments

Comments
 (0)