2 months ago
HI!! I'm deploying a Django app on Railway. The container starts successfully, Gunicorn launches without errors and listens on port 8080, but when I access the public domain, I get a 500 error on all routes.
Key details:
The app doesn't use a database—only forms (
forms.py) and SMTP configuration.Migrations were applied successfully (auth, admin, sessions, etc.).
Static files are located in
landingpage/static/landing, and I rancollectstatic --noinput.STATICFILES_DIRS,STATIC_ROOT, andALLOWED_HOSTSare configured according to Railway's official guide.My
Procfilecontains:web: gunicorn servelecpage.wsgi:application --bind 0.0.0.0:8080WSGI_APPLICATIONinsettings.pyis set to'servelecpage.wsgi.application', and thewsgi.pyfile correctly defines theapplicationvariable.The environment variable
ALLOWED_HOSTSis set toproyectosweb-production.up.railway.app, but I also tested with["*"].Logs show no errors—just a clean Gunicorn startup.
3 Replies
2 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
2 months ago
SMTP is only available on the PRO plan and above, maybe thats why its erroring
Also, did you configure the proxy correctly?
2 months ago
That was exactly the issue. I’m not planning to upgrade to the Pro plan at this time, so I’ll explore other deployment platforms. Thanks again for the support — I had assumed Railway included SMTP access by default.
My goal is to build scalable projects, ranging from simple landing pages to more complex, production-ready applications. If you have any platform recommendations that support SMTP out of the box, I’d really appreciate them.
All the best
Status changed to Solved brody • 2 months ago
