R
Railway•12mo ago
Tonquin

Django backend fails to respond

When I click on the url for my django backend (I am using react frontend in a separate service) I get an application failed to respond error. Not sure why this is the case, the deployment logs don't seem to indicate anything is wrong. Deployment logs and applicated failed screen are in the attached images. Any help would be greatly appreciated! This is my start command: "startCommand": "python manage.py migrate && gunicorn -b 0.0.0.0 -p $PORT backend.wsgi"
Solution:
Set an environment variable on your service as PORT with the value 8000
Jump to solution
5 Replies
Percy
Percy•12mo ago
Project ID: N/A
Tonquin
Tonquin•12mo ago
N/A
Solution
MantisInABox
MantisInABox•12mo ago
Set an environment variable on your service as PORT with the value 8000
MantisInABox
MantisInABox•12mo ago
It will redeploy and will work
Tonquin
Tonquin•12mo ago
Okay thanks, trying that right now Amazing! Thanks so much 🙂