I deployed my Django backend website four days ago, and it has been working perfectly fine. However, my team contacted me today to inform me that my website is down.
I decided to redeploy my website again and it’s working. However, 2 hours passed, and my website was 502 Bad Gateway again, and when I redeployed it worked again.
My front-end website is Next.js deployed in Vercel.
This website is for my university semester project, and it’s the first website that I deployed.
By the way, localhost runs without a problem.
This is the command I used to run the server:
python manage.py runserver 0.0.0.0:$PORT
This is in my log:
I want to share my service id but I couldn’t find it.
This is my website curl command
HTTP/1.1 502 Bad Gateway
Date: Wed, 13 Nov 2024 17:32:09 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
CF-Ray: 8e207fdbf9244b95-BKK
CF-Cache-Status: DYNAMIC
rndr-id: fa3466c6-5091-4a5c
x-render-routing: no-deploy
Server: cloudflare
alt-svc: h3=":443"; ma=86400