a year ago
I'm trying to deploy a MediaCMS Django application on Railway but getting "Application failed to respond" error. The application cannot be accessed through the generated domain.
Current setup:
- Using MediaCMS Django project (https://github.com/mediacms-io/mediacms)
- Deployed via Railway
- PostgreSQL database service added
- Environment variables configured for DB connection
Steps I've tried:
1. Added Procfile with configuration:
web: gunicorn mediacms.wsgi:application --bind 0.0.0.0:$PORT
2. Updated uwsgi.ini to use 0.0.0.0 and $PORT:
http = 0.0.0.0:$(PORT)
3. Configured ALLOWED_HOSTS = ["*"] in settings.py
4. Set up all required environment variables:
- PGDATABASE
- PGUSER
- PGPASSWORD
- PGHOST
- PGPORT
Error:
The application shows "Application failed to respond" screen with error 502 (Bad Gateway).
Request ID: CgakP4E4QAKwNSUHcWBjBw_1370606736
Would appreciate help in resolving this connection issue to get the application running properly on Railway.
3 Replies
a year ago
Looks like the
trm-mediacmsis crash looping?
Can you explain in more detail?
