Fly.io
1. Install flyctl
Section titled “1. Install flyctl”curl -L https://fly.io/install.sh | sh2. Create fly.toml
Section titled “2. Create fly.toml”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"]3. Launch
Section titled “3. Launch”flyctl launchflyctl deploy4. Scale
Section titled “4. Scale”flyctl scale count 3flyctl scale memory 5125. Attach Database
Section titled “5. Attach Database”flyctl postgres createflyctl postgres attach my-justapi-appSee Also
Section titled “See Also”- Railway — Deploy on Railway
- Docker — Container setup
- Production Checklist — Production readiness