-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrailway.json
More file actions
39 lines (38 loc) · 930 Bytes
/
railway.json
File metadata and controls
39 lines (38 loc) · 930 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
{
"$schema": "https://railway.com/railway.schema.json",
"build": {
"builder": "RAILPACK",
"buildCommand": "sleep 3 && npm run build",
"buildEnvironment": "V3"
},
"deploy": {
"runtime": "V2",
"numReplicas": 2,
"startCommand": "sleep 3 && export DATABASE_URL=$DATABASE_PRIVATE_URL && npm start",
"preDeployCommand": [
"sleep 3 && DATABASE_URL=$DATABASE_PRIVATE_URL npx prisma db push && npx prisma generate"
],
"sleepApplication": false,
"useLegacyStacker": false,
"multiRegionConfig": {
"us-west2": {
"numReplicas": 3
}
},
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 20,
"healthcheckPath": "/status",
"healthcheckTimeout": 1000
},
"environments": {
"staging": {
"deploy": {
"multiRegionConfig": {
"us-west2": {
"numReplicas": 1
}
}
}
}
}
}