server not found error while access the webapp by public url
crackspy
FREEOP

9 months ago

django webapp deployed successfull without any error ,is shows active but when acces with the public url it shows server not found!

https://clip-production.up.railway.app/

$10 Bounty

1 Replies

9 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 10 months ago


9 months ago

Well, this usually means your app isn’t listening on the right port or address. Railway needs your app to bind to 0.0.0.0 and use the port from the PORT environment variable, not a hardcoded port like 8000.

If you’re using Gunicorn, your start command should be something like:

gunicorn myproject.wsgi:application --bind 0.0.0.0:$PORT or if you’re using Django’s runserver:python manage.py runserver 0.0.0.0:$PORT

If you leave it as the default, Railway’s proxy can’t reach your app, so the public URL won’t work. Also, make sure your deploy actually finished and didn’t error out (you can increase the run time). Then just redeploy and it should work.


Loading...