Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Procfile not found, Heroku python app

Tags:

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.

like image 733
Thain Avatar asked Apr 03 '13 14:04

Thain


1 Answers

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
like image 129
tr33hous Avatar answered Sep 19 '22 07:09

tr33hous