2 years ago
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
30 Replies
2 years ago
please see this docs page
2 years ago
hmmm, not sure how those docs have anything to do with docker, they are applicable for every app you could run on railway
2 years ago
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"]
2 years ago
your own code is returning the 404 now, nothing to do with a dockerfile
2 years ago
do you have anything registered for the root route?
the django app was working properly till yesterday. but i dont know how it crashed today
2 years ago
^
Can you look into my repo. Im completely stuck. I dont know whats causing the issue. No issues in my local
2 years ago
something you changed yesterday broke something, maybe you will get more info if you enable debug mode
2 years ago
?
2 years ago
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
2 years ago
I'm sorry but that is not a page that railway would show
2 years ago
you said the applicable worked up until recently, I would try reverting your repo to before you made that breaking change
Closing this thread. It was a mistake from my side sorry Brody if I wasted ur time
2 years ago
no worries at all, in the future, please don't be so quick to think it's a platform issue



