R
Railway10mo 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
Percy10mo ago
Project ID: N/A
Tonquin
Tonquin10mo ago
N/A
Solution
MantisInABox
MantisInABox10mo ago
Set an environment variable on your service as PORT with the value 8000
MantisInABox
MantisInABox10mo ago
It will redeploy and will work
Tonquin
Tonquin10mo ago
Okay thanks, trying that right now Amazing! Thanks so much 🙂