Skip to content

Commit 8257722

Browse files
committed
Grow the servers to 512MB, and keep 1 production machine always running.
1 parent 94bc24a commit 8257722

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
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 \

webserver/fly.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
33
app = "vlach-cookbook-staging"
44
primary_region = "sea"
55
kill_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"

0 commit comments

Comments
 (0)