Skip to content

Instantly share code, notes, and snippets.

@dNitza
Last active March 2, 2023 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dNitza/649ba8b22de794e1d0c8724c3c567edd to your computer and use it in GitHub Desktop.
Save dNitza/649ba8b22de794e1d0c8724c3c567edd 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