-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
58 lines (46 loc) · 1.24 KB
/
fly.toml
File metadata and controls
58 lines (46 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
console_command = "/bin/sh"
# closest to AWS us-east-1, where crunchy databases live
primary_region = "iad"
# puma listens for this, and will shut down gracefully when it receives it
kill_signal = "SIGTERM"
# give streaming requests a chance to finish up
kill_timeout = 30
[build]
dockerfile = "Dockerfile"
ignorefile = ".dockerignore"
[deploy]
# deployment is done (and configured) via github workflow
[env]
PORT = "8080"
RAILS_ENV = "production"
RAILS_LOG_TO_STDOUT = "true"
[processes]
web = "bin/puma --port 8080"
[[services]]
auto_start_machines = true
auto_stop_machines = true
internal_port = 8080
min_machines_running = 1
processes = ["web"]
protocol = "tcp"
[services.concurrency]
hard_limit = 100
soft_limit = 90
type = "requests"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[checks]
[checks.responds_to_http]
grace_period = "5s"
interval = "10s"
method = "get"
path = "/__healthcheck"
port = 8080
processes = ["web"]
timeout = "1s"
type = "http"