Building works but site url returns "Application failed to respond"
polcarva
HOBBYOP
2 years ago
Hi! I am trying to deploy a CMS, It builds normally with no unexpected logs yet when I try to connect to the generated domain (augustobackend-production.up.railway.app) it does not work.
Also, to make sure there is nothing wrong with the code, I deployed the SAME github repo to render.com and it works, but I would like to have it deployed here.
Additional info: The code is a basic PayloadCMS project.
Hope someone can help.
2 Replies
Status changed to Solved Railway • over 1 year ago
polcarva
HOBBYOP
2 years ago
TY! That whas it, just changing the port and host in the server.ts
const port = parseInt(process.env.PORT || '3000', 10);
app.listen(port, '0.0.0.0', () => {
console.log(Server is running on port ${port})
});