Skip to content

Commit bcc9dcc

Browse files
committed
Use railway with node 18
1 parent 9738336 commit bcc9dcc

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"dev": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/index.ts",
99
"start": "ts-node src/index.ts"
1010
},
11+
"engines": {
12+
"node": "18"
13+
},
1114
"keywords": [],
1215
"author": "Rafal Wilinski <rafal@dynobase.dev>",
1316
"license": "ISC",

railway.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://railway.app/railway.schema.json",
3+
"build": {
4+
"builder": "NIXPACKS",
5+
"buildCommand": "npm install"
6+
},
7+
"deploy": {
8+
"startCommand": "npm start",
9+
"healthcheckPath": "/",
10+
"healthcheckTimeout": 100,
11+
"restartPolicyType": "ON_FAILURE"
12+
}
13+
}

0 commit comments

Comments
 (0)