Skip to content

Commit

Permalink
add auto_stop and auto_start to conserve resources #208
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jun 16, 2024
1 parent 6bd9406 commit 53e402f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ kill_timeout = "5s"
protocol = "tcp"
internal_port = 8080
processes = ["app"]
# https://fly.io/docs/apps/autostart-stop/
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0

[[services.ports]]
port = 80
Expand Down

0 comments on commit 53e402f

Please sign in to comment.