8 months ago
So I've been having some build time out problems lately. Builds take up to 10 minutes and then they fail because of timeout. I've tried with nixpacks and railpack. Both fail.
And something else I am struggling with, I am trying to get my services reachable from the outside world, so I setup an autogenerated domain for now, and it asks me for what port is my app listening to. It can only be a number, but my nodejs app is listening on whatever port it is given in the PORT env var.
Anyway, I just set 3000 to try things out and the HTTP logs show my requests, but I get a 502 back.
I am running a nestjs application (nodejs), and I read the PORT from the env vars to set the app to listen to a port. In another project I have built with nextjs, railway automagically detects a port.
How am I supposed to give a fixed PORT value for a custom domain when the services should be listening to the PORT provided by the env var? In the past I learned that if you listened on any other port, things would not go through.
This is for a project I cannot select in the projects list, by the way...
1 Replies
8 months ago
Hello,
The build timeouts were likely a result of this incident -
https://status.railway.com/cmclvq0nm00bstks1igwbytu2
But the custom domain issues would be unrelated; please open a new thread for support with the domain.
Status changed to Awaiting User Response Railway • 8 months ago
6 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 7 months ago