npmrunstart
npmrunstart
RRailway
Created by npmrunstart on 5/20/2023 in #✋|help
Application failed to respond
My nx app get that error:
yarn run v1.22.19
$ nx serve app --prod --port 5564
> nx run app:serve:production --port 5564
info - Loaded env from /app/packages/app/.env.local
[ ready ] on http://localhost:5564
yarn run v1.22.19
$ nx serve app --prod --port 5564
> nx run app:serve:production --port 5564
info - Loaded env from /app/packages/app/.env.local
[ ready ] on http://localhost:5564
nix packs configuration:
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"buildCommand": "yarn build app --prod"
},
"deploy": {
"numReplicas": 1,
"startCommand": "yarn start app --prod --port ${PORT-3001}",
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"buildCommand": "yarn build app --prod"
},
"deploy": {
"numReplicas": 1,
"startCommand": "yarn start app --prod --port ${PORT-3001}",
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
18 replies