R
Railway3y ago
Medim

Listening on PORT but application not serving

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 thonking
8 Replies
JustJake
JustJake3y ago
Either listen on PORT or set PORT=8055 in variables
angelo
angelo3y ago
^ Railway will try it's best to guess what port your application is running on but you may have to provide that value yourself. See here: https://docs.railway.app/deploy/exposing-your-app
Railway Docs
Exposing Your App | Railway Docs
Documentation for Railway
Medim
MedimOP3y ago
Already did create a PORT=8055 in variables, nothing changed
JustJake
JustJake3y ago
What frameowkr are you using?
Medim
MedimOP3y ago
Directus
JustJake
JustJake3y ago
If you're listening on 127.0.0.1 can you try to listen on 0.0.0.0?
angelo
angelo3y ago
You mention it's in your .env, is it in the service vars? Also, you may need to serve from 0.0.0.0
Medim
MedimOP3y ago
Going to try it, one sec. yep, the problem was 127.0.0.1 thanks guys.
Want results from more Discord servers?
Add your server