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
32 Replies
Project ID:
661d2cde-2cf5-4ac3-8a26-12a1078ee9c6
661d2cde-2cf5-4ac3-8a26-12a1078ee9c6
So you specified
3030
as the port railway should be using?I believe I did. I added a PORT env variable
unless I'm missing the correct place to set this up
You'd be setting that up in your service variables can be found in the settings of your deployment
so here?
ya
yea, added it there
yea okay I'm not really sure why that happens 🤔
what happens when you remove port specification in the url when connecting to the domain?
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
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
wait a minute
Solution
apparently I was able to access it now
oh, neat
apparently it does the port implicitly
I can just call the domain and it forwards to the app's port
yea
perhaps it took some time to propagate some change under the hood
sweet sauce, thanks for the help monsieur ❤️
no problem :)
BTW loving railway, it's like having a DevOps slave xD
lmao fr
one more question actually
apparently an SSL cert was generated automagically for my custom domain
or am I tripping balls?
Yea I think it automatically generates for you
that is simply awesome
please forward the user feedback xD
I don't work for railway but you can give feedback here if you want: #🤗|feedback
hey hey, still there?
I'm always here 🕵️♂️
legend
maybe I should open a new ticket since it's a new issue in a new app?
yea that'll probably be better
done-o 🙂