4 months ago
Hi everyone, I'm a beginner and currently trying to deploy a Django backend api on Railway (Hobby Plan). It works fine locally, but on Railway the container starts, logs show "WSGI loaded", and then it stops without error.
I'm using Django + Gunicorn + PostgreSQL (Railway plugin)
I already set up Procfile and requirements.txt
I set health check to
/healthbut the container still stops
Can anyone help me figure out what could be wrong or guide me how to debug this properly? š
Thanks in advance!
2 Replies
4 months ago
Did you set the port correctly in the Settings -> Public networking ?
Is the deployment crashing ?
I didnāt change anything under Settings -> Public Networking ā it's still showing Port 8000, and I never touched that part.
The deployment doesnāt crash with an error. Gunicorn starts, logs show "WSGI loaded", /health returns 200, and then the container stops on its own without exceptions.
4 months ago
The default port was 8000, but I'm listening to 8080, it was fixed after updating the port, thanks!
Status changed to Solved chandrika ⢠4 months ago