NestJS deployment
gonzaloconcep
TRIALOP
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
Status changed to Solved Railway • over 1 year ago
gonzaloconcep
TRIALOP
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!
brody
EMPLOYEE
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.