I'm trying to put a small Flask app on Heroku. When it starts, it gives me the following message, from the logs:
2015-03-11T01:05:26.737788+00:00 heroku[web.1]: State changed from crashed to starting
2015-03-11T01:05:31.409851+00:00 heroku[web.1]: Starting process with command `gunicorn app:app`
2015-03-11T01:05:33.863601+00:00 app[web.1]: bash: gunicorn: command not found
2015-03-11T01:05:34.644419+00:00 heroku[web.1]: Process exited with status 127
2015-03-11T01:05:34.668264+00:00 heroku[web.1]: State changed from starting to crashed
My Procfile is
web: gunicorn application:app
, and application.py is the file I want to run. I looked up this problem and saw that it was sometimes caused by gunicorn not being in requirements.txt, but my requirements.txt has it, with this line:
gunicorn==19.3.0
. I tried running
heroku run pip install gunicorn
and it told me it installed gunicorn-19.3.0 successfully. But when I tried running it on Heroku with
heroku run gunicorn
it against gave me the "bash: gunicorn: command not found" message.