#Listening on PORT but application not serving

11 messages · Page 1 of 1 (latest)

cedar dock
#

Hi there! My app is listening on port 8055 as defined in the app .env
I ran railway up and it built my project flawlessly.

But heres the catch : How can i redirect railway to port 8055??
When i access my railway.app url it gives me the Is your app correctly listening on $PORT? but what does it mean? where do i put this $port?thonking

half current
#

Either listen on PORT or set PORT=8055 in variables

ashen condor
cedar dock
#

Already did create a PORT=8055 in variables, nothing changed

half current
#

What frameowkr are you using?

cedar dock
#

Directus

half current
#

If you're listening on 127.0.0.1 can you try to listen on 0.0.0.0?

ashen condor
#

You mention it's in your .env, is it in the service vars? Also, you may need to serve from 0.0.0.0

cedar dock
#

Going to try it, one sec.

#

yep, the problem was 127.0.0.1

#

thanks guys.