Skip to content

Commit 6647ae0

Browse files
fix: Force Railway to use full server explicitly
1 parent 6fe711a commit 6647ae0

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ RUN npm run build
2727
# Clean up build dependencies and unnecessary files
2828
RUN rm -rf src/ scripts/ test/ tests/ __tests__ *.test.* *.spec.* node_modules/.cache
2929

30-
# Expose port
30+
# Expose port (Railway uses PORT env var)
3131
EXPOSE 3000
3232

33-
# Start the application
34-
CMD ["npm", "start"]
33+
# Start the FULL server explicitly
34+
CMD ["node", "dist/servers/railway/index.js"]

railway.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
]
1010
},
1111
"deploy": {
12-
"startCommand": "npm start",
1312
"restartPolicyType": "ON_FAILURE",
1413
"restartPolicyMaxRetries": 3,
1514
"healthcheckPath": "/health",

0 commit comments

Comments
 (0)