Doing the heroku python demo and having problems with Procfile. I have it in the right directory (alongside requirements.txt, venv/, and app.py) and the file is "Procfile" without .txt extension (as other questions suggest).
Contents of Procfile are:
web: python app.py
Nonetheless, I keep getting the "Procfile does not exist" error when running "foreman start." At my wits end, any suggestions would be appreciated.
Cheers, Thain
EDIT: Retried creating "Procfile" using echo command rather than an editor -
echo "web: python app.py" > Procfile
worked after that, thanks.
Just adding an answer so that this can be closed (or moved from the unanswered questions section).
As noted in the comments, try using the echo
command to create the file rather than an editor. I suspect that this is because of a newline char added by most editors that heroku is having a difficult time with.
Example solution (from qn):
echo "web: python app.py" > Procfile