-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrailway.toml
More file actions
39 lines (35 loc) · 876 Bytes
/
railway.toml
File metadata and controls
39 lines (35 loc) · 876 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
# Railway configuration for the-brain worker service
# Background AI content rating processor
[build]
builder = "NIXPACKS"
buildCommand = "pnpm install --frozen-lockfile && pnpm --filter @pulse/shared build && pnpm --filter the-brain build"
watchPatterns = [
"apps/the-brain/**",
"packages/shared/**",
"migrations/**",
"package.json",
"pnpm-lock.yaml",
"pnpm-workspace.yaml",
"nixpacks.toml",
"apps/the-brain/nixpacks.toml"
]
[deploy]
startCommand = "pnpm --filter the-brain start"
restartPolicyType = "ON_FAILURE"
restartPolicyMaxRetries = 10
healthcheckPath = "/health"
healthcheckTimeout = 30
numReplicas = 1
port = 3001
[providers]
# Node.js version
nodejs = "22"
[variables]
# Health check port
HEALTH_PORT = "3001"
# Worker configuration
RATING_CONCURRENCY = "5"
POLL_INTERVAL_MS = "5000"
MAX_RETRIES = "3"
# Node environment
NODE_ENV = "production"