File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2626 version_prefix : ' vlach-cookbook@'
2727 set_commits : auto
2828 - 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
2931 - name : Update the production deployment.
3032 run : |
3133 flyctl deploy webserver -a vlach-cookbook \
Original file line number Diff line number Diff line change 11# 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.
33app = " vlach-cookbook-staging"
44primary_region = " sea"
55kill_signal = " SIGINT"
@@ -14,7 +14,7 @@ kill_timeout = 5
1414[http_service ]
1515 internal_port = 8080
1616 force_https = true
17- auto_stop_machines = true
17+ auto_stop_machines = " suspend "
1818 auto_start_machines = true
1919 min_machines_running = 0
2020 [http_service .concurrency ]
@@ -30,4 +30,4 @@ kill_timeout = 5
3030
3131[[vm ]]
3232 size = " shared-cpu-1x"
33- memory = " 256mb "
33+ memory = " 512mb "
You can’t perform that action at this time.
0 commit comments