nikostolz
Django Deployment Issue - 503 Error on Railway Platform
Hello,
I am encountering a 503 error ("Application failed to respond") while deploying my Django application on Railway.
Build and deploy logs contain no errors.
Here are the relevant details:
Deployment Logs:
Build Logs (Partial):
Deployment Setup:
Docker configuration: https://github.com/NikGor/mysite/blob/main/Dockerfile and https://github.com/NikGor/mysite/blob/main/docker-compose.yml
Deployment files: https://github.com/NikGor/mysite/blob/main/railway.yml
Project settings: https://github.com/NikGor/mysite/blob/main/mysite/settings.py
Observations:
The application deploys successfully locally without any errors.
Connection to the DATABASE_URL from Railway works from the local environment.
All required environment variables such as DATABASE_URL, SECRET_KEY, DEBUG, ALLOWED_HOSTS for the Django application are properly configured on the Railway platform.
I am seeking assistance from Django specialists to identify potential issues causing the application to not respond on Railway. I'm confused, because the project was successfully deployed on render.com.
Note:
I acknowledge that I am using the development server in the Dockerfile, which is suitable for small projects. For reference, I based my docker-compose.yml and Dockerfile on the official Django documentation's recommended sample project: https://github.com/dockersamples/link-shortener-django/
Thank you for your expertise and support.
Best regards,
Niko
9 replies