File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 26
26
version_prefix : ' vlach-cookbook@'
27
27
set_commits : auto
28
28
- uses : superfly/flyctl-actions/setup-flyctl@master
29
+ - name : Keep 1 production machine running
30
+ run : sed -i 's/min_machines_running = 0/min_machines_running = 1/' webserver/fly.toml
29
31
- name : Update the production deployment.
30
32
run : |
31
33
flyctl deploy webserver -a vlach-cookbook \
Original file line number Diff line number Diff line change 1
1
# Use `-a vlach-cookbook` to deploy the production app.
2
- # TBD how to override min_machines_running to 1 in production .
2
+ # Production releases use `sed` to set min_machines_running to 1.
3
3
app = " vlach-cookbook-staging"
4
4
primary_region = " sea"
5
5
kill_signal = " SIGINT"
@@ -14,7 +14,7 @@ kill_timeout = 5
14
14
[http_service ]
15
15
internal_port = 8080
16
16
force_https = true
17
- auto_stop_machines = true
17
+ auto_stop_machines = " suspend "
18
18
auto_start_machines = true
19
19
min_machines_running = 0
20
20
[http_service .concurrency ]
@@ -30,4 +30,4 @@ kill_timeout = 5
30
30
31
31
[[vm ]]
32
32
size = " shared-cpu-1x"
33
- memory = " 256mb "
33
+ memory = " 512mb "
You can’t perform that action at this time.
0 commit comments