Skip to content

Fly.io

Terminal window
curl -L https://fly.io/install.sh | sh
app = "my-justapi-app"
primary_region = "iad"
[build]
image = "my-justapi-app:latest"
[http_service]
internal_port = 8080
force_https = true
[[services]]
protocol = "tcp"
internal_port = 8080
[[services.ports]]
port = 80
handlers = ["http"]
[[services.ports]]
port = 443
handlers = ["tls", "http"]
Terminal window
flyctl launch
flyctl deploy
Terminal window
flyctl scale count 3
flyctl scale memory 512
Terminal window
flyctl postgres create
flyctl postgres attach my-justapi-app