a year ago
I am experiencing deployment issues with my Django application on Railway. Here's the situation:
Configuration:
Start Command: python -m waitress --port=$PORT --call pesticideproject.pesticideproject.wsgi:application
Procfile contains: web: python -m waitress --port=$PORT --call pesticideproject.pesticideproject.wsgi:application
waitress is included in requirements.txt
Added health check endpoint in Django application
Error Messages:
The deployment fails with the following errors in Deploy Logs:
Starting Container
/bin/bash: line 1: waitress-serve: command not found
container event container died
container event container restart
What I've tried:
Confirmed waitress is in requirements.txt
Tried different command variations (including using python -m)
Verified project structure and WSGI path
Added proper health check endpoint
The build process completes successfully, but the service fails to start. Any assistance in resolving this deployment issue would be greatly appreciated
ⓘ Deployment information is only viewable by project members and Railway employees.
2 Replies
a year ago
Your overwriting the Procfile in the start command within the service settings -
Attachments
