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