# Fly.io alternative to Render. From this folder: # fly launch --no-deploy --copy-config (pick a unique app name) # fly secrets set DATABASE_URL=... DASHBOARD_PASSWORD=... SECRET_KEY=$(python -c "import secrets;print(secrets.token_urlsafe(32))") # fly deploy app = "mamadachi" # change to something unique primary_region = "iad" # Ashburn, next to AWS us-east-1 (put the database there too) [build] dockerfile = "Dockerfile" [env] APP_ENV = "production" PORT = "8000" DEFAULT_TIMEZONE = "America/New_York" [http_service] internal_port = 8000 force_https = true # Keep one machine running: a cold start would keep the device's radio on longer. auto_stop_machines = "off" auto_start_machines = true min_machines_running = 1 [[http_service.checks]] interval = "30s" timeout = "5s" grace_period = "20s" method = "GET" path = "/healthz" [[vm]] size = "shared-cpu-1x" memory = "256mb"