Spaces:
Sleeping
Sleeping
File size: 1,730 Bytes
fdfe81a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | # fly.toml β Farient Review API (Fly.io)
#
# HOW TO DEPLOY (one-time)
# βββββββββββββββββββββββββ
# cd apps/api
# flyctl launch --no-deploy --copy-config # registers app, reuses this file
# flyctl secrets set \
# OPENAI_API_KEY=sk-... \
# OPENAI_MODEL=gpt-4o-mini \
# WEB_ORIGINS=https://<your-vercel-url>.vercel.app \
# WEB_ORIGIN_REGEX='^https://farient-review.*\.vercel\.app$' \
# MAX_UPLOAD_MB=60
# flyctl deploy
#
# SUBSEQUENT DEPLOYS
# ββββββββββββββββββ
# flyctl deploy # from apps/api/
#
# SMOKE CHECK
# βββββββββββ
# curl https://farient-review-api.fly.dev/health # expect {"ok": true}
#
# ROLLBACK
# ββββββββ
# flyctl releases # list releases
# flyctl releases rollback <version> # roll back to a specific version
app = "farient-review-api"
primary_region = "iad"
[build]
dockerfile = "Dockerfile"
[http_service]
internal_port = 8000
force_https = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 0
[http_service.concurrency]
type = "requests"
soft_limit = 10
hard_limit = 25
[[vm]]
memory = "1gb"
cpus = 1
cpu_kind = "shared"
[[services]]
protocol = "tcp"
internal_port = 8000
[[services.tcp_checks]]
interval = "15s"
timeout = "10s"
grace_period = "30s"
restart_limit = 0
[[services.http_checks]]
interval = "15s"
timeout = "10s"
grace_period = "30s"
method = "GET"
path = "/health"
protocol = "http"
restart_limit = 0
tls_skip_verify = false
|