# OPTIONAL — platform-specific. Only needed if you deploy to Fly.io. # Safe to delete on any other host. # # Single-resource on Fly: one machine with one attached volume. Because the # SQLite file lives on the volume, this app is PINNED to a single machine in a # single region — do not scale it past one instance. # # fly launch --no-deploy --copy-config # fly volumes create civility_data --region iad --size 3 # fly secrets set CIVILITY_AUTH_SECRET="$(openssl rand -hex 32)" # fly deploy app = "civility" primary_region = "iad" [build] [env] DATA_DIR = "/data" [http_service] internal_port = 8080 force_https = true # Do NOT auto-stop to zero if you want the volume machine always available; # a single volume-backed machine can still suspend, but keep one running. auto_stop_machines = "suspend" auto_start_machines = true min_machines_running = 1 processes = ["app"] [[vm]] size = "shared-cpu-1x" memory = "512mb" [[mounts]] source = "civility_data" destination = "/data" [checks] [checks.api] type = "http" interval = "30s" timeout = "5s" grace_period = "15s" method = "GET" path = "/api/v1/doc"