10 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!
Pinned Solution
10 months ago
Did you set the port correctly in the Settings -> Public networking ?
Is the deployment crashing ?
4 Replies
10 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.
10 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 âą 10 months ago