Dash is running on http://127.0.0.1:5984/ but server error
Hi, it is my first time using Railway app, the build is active but server error, and it says: Looks like your app is listening on 127.0.0.1. You may need to listen on 0.0.0.0 instead.
service ID: 14743028-2549-4a5e-89f7-5f10c93716da
please kindly help.
17 Replies
Project ID:
14743028-2549-4a5e-89f7-5f10c93716da
this might help
https://docs.railway.app/troubleshoot/fixing-common-errors
I don't understand this part:
Solution
To fix this, start your application's server using:
Host = 0.0.0.0,
Port = Value of the PORT environment variable provided by Railway.
Alternatively, you can set a custom PORT service variable in your Railway environment to tell Railway that your application is available at the port you specified. For more information, check out Defining Variables. This approach is not recommended.
Can you please tell me an example on how to create that?
what framework?
Python
Using Dash
what's your current start command
python3 app.py
GitHub
GitHub - withLinda/RailwayAppForNala: Dash DataTable; Initial depl...
Dash DataTable; Initial deployment to Railway app - GitHub - withLinda/RailwayAppForNala: Dash DataTable; Initial deployment to Railway app
where is this set?
On settings - deploy - start command
you already have gunicorn in your requirements.txt file so thats perfect, change your start command to
gunicorn app:server
ow, ok. i'll try now
and as outlined in the docs link I sent above, gunicorn listens in 0.0.0.0 and $PORT by default
noted, thanks
let me know if it doesn't work or you have any more questions
It works! thank you so much!
no problem!