NestJS deployment

gonzaloconcepTRIAL

a year 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?

Solved

3 Replies


Status changed to Solved railway[bot] about 1 year ago


gonzaloconcepTRIAL

a year 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!


a year 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.