Skip to content

Instantly share code, notes, and snippets.

@konung
Forked from dNitza/fly.toml
Created March 2, 2023 16:42
Show Gist options
  • Save konung/9413eeedfc34367d93ce0aa271566ca0 to your computer and use it in GitHub Desktop.
Save konung/9413eeedfc34367d93ce0aa271566ca0 to your computer and use it in GitHub Desktop.
Hanami 2.0 fly.io config
app = "app-name"
kill_signal = "SIGINT"
kill_timeout = 5
[deploy]
release_command = "bin/hanami db migrate"
[env]
HANAMI_ENV="production"
[processes]
web = "bundle exec puma -C config/puma.rb"
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
http_checks = []
internal_port = 3000
processes = ["web"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment