Update Railway deployment settings
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start -p ${PORT:-3000}",
|
"start": "next start -H 0.0.0.0 -p ${PORT:-8080}",
|
||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
11
railway.json
11
railway.json
@@ -5,19 +5,10 @@
|
|||||||
"buildCommand": "npm install && npm run build"
|
"buildCommand": "npm install && npm run build"
|
||||||
},
|
},
|
||||||
"deploy": {
|
"deploy": {
|
||||||
"startCommand": "npm start",
|
"startCommand": "npm run start",
|
||||||
"healthcheckPath": "/api/health",
|
"healthcheckPath": "/api/health",
|
||||||
"healthcheckTimeout": 100,
|
"healthcheckTimeout": 100,
|
||||||
"restartPolicyType": "ON_FAILURE",
|
"restartPolicyType": "ON_FAILURE",
|
||||||
"restartPolicyMaxRetries": 3
|
"restartPolicyMaxRetries": 3
|
||||||
"$schema": "https://railway.app/railway.schema.json",
|
|
||||||
"build": {
|
|
||||||
"builder": "NIXPACKS",
|
|
||||||
"buildCommand": "npm install && npm run build",
|
|
||||||
"startCommand": "npm run start"
|
|
||||||
},
|
|
||||||
"deploy": {
|
|
||||||
"healthcheckPath": "/api/health",
|
|
||||||
"restartPolicyType": "ON_FAILURE"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user