Application failed to respond
Im getting this error whenever im deploying my Django application.I'm using docker.
Here is the link to my github repo https://github.com/midhun98/hospital_site
GitHub
GitHub - midhun98/hospital_site: Hospital site for Jayanthi Hospital
Hospital site for Jayanthi Hospital. Contribute to midhun98/hospital_site development by creating an account on GitHub.
26 Replies
Project ID:
fd0bd18d-392d-4b0d-af5c-395356468583
fd0bd18d-392d-4b0d-af5c-395356468583
please see this docs page
https://docs.railway.app/guides/fixing-common-errors
I'm using docker in my app and the docs dont help me.
it now returns HTTP ERROR 404
hmmm, not sure how those docs have anything to do with docker, they are applicable for every app you could run on railway
that 404 would be the code your app is returning
this is my dockerfile
FROM python:3.12
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "hospital_site.wsgi:application"]
GitHub
hospital_site/Dockerfile at master · midhun98/hospital_site
Hospital site for Jayanthi Hospital. Contribute to midhun98/hospital_site development by creating an account on GitHub.
your own code is returning the 404 now, nothing to do with a dockerfile
do you have anything registered for the root route?
i didnt understand. i mean nothing is loading in django app
the django app was working properly till yesterday. but i dont know how it crashed today
^
Can you look into my repo. Im completely stuck. I dont know whats causing the issue. No issues in my local
something you changed yesterday broke something, maybe you will get more info if you enable debug mode
i enabled debug mode. but it wont show any erros
?
yes
i mean its not a standard 404 page by my django app see screenshot
that would not be a 404 page that railway would return as you would see the railway logo, this is an application level issue.
i have debug turned on in my project. it would show some django error messages if it was my app issue
I'm sorry but that is not a page that railway would show
any other solution tried my best in resolving
you said the applicable worked up until recently, I would try reverting your repo to before you made that breaking change
ok
Closing this thread. It was a mistake from my side sorry Brody if I wasted ur time
no worries at all, in the future, please don't be so quick to think it's a platform issue