-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
46 lines (38 loc) · 899 Bytes
/
fly.toml
File metadata and controls
46 lines (38 loc) · 899 Bytes
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
app = "swapify"
primary_region = "ord"
[build]
[env]
NODE_ENV = "production"
NEXT_PUBLIC_APP_URL = "https://swapify.312.dev"
# DATABASE_URL set via `fly secrets set DATABASE_URL=...`
# ANTHROPIC_API_KEY set via `fly secrets set ANTHROPIC_API_KEY=...`
[deploy]
release_command = "node src/db/migrate.mjs"
[processes]
web = "node server.js"
worker = "node worker.js"
[http_service]
processes = ["web"]
internal_port = 3000
force_https = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 1
[[http_service.checks]]
interval = "15s"
grace_period = "10s"
method = "GET"
path = "/api/health"
timeout = "5s"
# Web machine
[[vm]]
processes = ["web"]
memory = "512mb"
cpu_kind = "shared"
cpus = 1
# Worker machine (always running, no HTTP)
[[vm]]
processes = ["worker"]
memory = "512mb"
cpu_kind = "shared"
cpus = 1