2 years ago
I'm trying to deploy my NestJS application. Everythin goes well, the project starts nice because I can see the logs of NestJS as in my local machine but after that, when I enter de app domain name, Railway returns me an screen with the error:
"Application failed to respond"
I can not see anything more in logs. Could anyone help me?
3 Replies
2 years ago
Please see this docs page -
Status changed to Solved Railway • almost 2 years ago
2 years ago
Thank you, in my case was the PORT env variable. Does not appearing in my code at this moment but adding it and setting fixed it!
2 years ago
As the docs mentioned, that is the less ideal solution, not setting your own PORT variable and having your code listen on the auto generated PORT variable is the most ideal solution.