Skip to content

Commit 15315a9

Browse files
committed
build(api): add Railway configuration
1 parent 1998c93 commit 15315a9

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Procfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
release: yarn migrate:apply

railway.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://railway.app/railway.schema.json",
3+
"build": {
4+
"builder": "NIXPACKS",
5+
"buildCommand": "yarn workspace @interval.so/api build"
6+
},
7+
"deploy": {
8+
"healthcheckPath": "/health",
9+
"healthcheckTimeout": 10,
10+
"numReplicas": 1,
11+
"restartPolicyMaxRetries": 3,
12+
"restartPolicyType": "ALWAYS",
13+
"startCommand": "node ./apps/api/build/bin/server.js",
14+
"runtime": "V2"
15+
}
16+
}

0 commit comments

Comments
 (0)