App timing out on specified port but no error in logs

I have configured a NestJS app with postgres and the build/deployment are working correctly as far as I can see in the logs. However, when I try to access the server through domain:3030, it times out and nothing shows in the app's logs
Solution:
apparently I was able to access it now
Jump to solution
32 Replies
Percy
Percy13mo ago
Project ID: 661d2cde-2cf5-4ac3-8a26-12a1078ee9c6
gr33nTHumB
gr33nTHumB13mo ago
661d2cde-2cf5-4ac3-8a26-12a1078ee9c6
Fragly
Fragly13mo ago
So you specified 3030as the port railway should be using?
gr33nTHumB
gr33nTHumB13mo ago
I believe I did. I added a PORT env variable unless I'm missing the correct place to set this up
Fragly
Fragly13mo ago
You'd be setting that up in your service variables can be found in the settings of your deployment
gr33nTHumB
gr33nTHumB13mo ago
No description
gr33nTHumB
gr33nTHumB13mo ago
so here?
Fragly
Fragly13mo ago
ya
gr33nTHumB
gr33nTHumB13mo ago
yea, added it there
Fragly
Fragly13mo ago
yea okay I'm not really sure why that happens 🤔
gr33nTHumB
gr33nTHumB13mo ago
No description
Fragly
Fragly13mo ago
what happens when you remove port specification in the url when connecting to the domain?
gr33nTHumB
gr33nTHumB13mo ago
gives me the railway "app not found" template which leads me to believe it's reponding on port 80 while the service is running on 3030 if I can setup port forwarding that should do it too, like 80 > 3030
Fragly
Fragly13mo ago
nah it wouldn't listen on any port other than the one you provide I'm pretty sure that app not found error might be a clue
gr33nTHumB
gr33nTHumB13mo ago
wait a minute
Solution
gr33nTHumB
gr33nTHumB13mo ago
apparently I was able to access it now
Fragly
Fragly13mo ago
oh, neat
gr33nTHumB
gr33nTHumB13mo ago
apparently it does the port implicitly I can just call the domain and it forwards to the app's port
Fragly
Fragly13mo ago
yea
gr33nTHumB
gr33nTHumB13mo ago
perhaps it took some time to propagate some change under the hood sweet sauce, thanks for the help monsieur ❤️
Fragly
Fragly13mo ago
no problem :)
gr33nTHumB
gr33nTHumB13mo ago
BTW loving railway, it's like having a DevOps slave xD
Fragly
Fragly13mo ago
lmao fr
gr33nTHumB
gr33nTHumB13mo ago
one more question actually apparently an SSL cert was generated automagically for my custom domain or am I tripping balls?
Fragly
Fragly13mo ago
Yea I think it automatically generates for you
gr33nTHumB
gr33nTHumB13mo ago
that is simply awesome please forward the user feedback xD
Fragly
Fragly13mo ago
I don't work for railway but you can give feedback here if you want: #🤗|feedback
gr33nTHumB
gr33nTHumB13mo ago
hey hey, still there?
Fragly
Fragly13mo ago
I'm always here 🕵️‍♂️
gr33nTHumB
gr33nTHumB13mo ago
legend maybe I should open a new ticket since it's a new issue in a new app?
Fragly
Fragly13mo ago
yea that'll probably be better
gr33nTHumB
gr33nTHumB13mo ago
done-o 🙂
Want results from more Discord servers?
Add your server