Skip to content

Commit bee8f5f

Browse files
committed
deploy: Increase min machines to 1, adds http healthcheck
1 parent f94ae4f commit bee8f5f

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

fly.toml

+6-12
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,20 @@ primary_region = 'lhr'
1111
force_https = true
1212
auto_stop_machines = true
1313
auto_start_machines = true
14-
min_machines_running = 0
14+
min_machines_running = 1
1515
processes = ['app']
1616

1717
[[vm]]
1818
memory = '1gb'
1919
cpu_kind = 'shared'
2020
cpus = 1
2121

22-
[[services.tcp_checks]]
23-
grace_period = "1s"
24-
interval = "15s"
25-
restart_limit = 0
26-
timeout = "2s"
27-
28-
[[services.http_checks]]
29-
interval = 10000
22+
[[http_service.checks]]
23+
interval = "2s"
3024
grace_period = "5s"
31-
method = "get"
25+
method = "GET"
3226
path = "/health"
3327
protocol = "http"
34-
timeout = 2000
28+
port = 8080
29+
timeout = "2s"
3530
tls_skip_verify = false
36-
[services.http_checks.headers]

0 commit comments

Comments
 (0)