Geroku cannot find a shooting team

I am trying to put a small Flask application 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

web: gunicorn application:app

and application.py is the file I want to run. I raised this problem and saw that sometimes this is because gunicorn is not in the .txt requirements, but my .txt requirements file has this line:

gunicorn==19.3.0

. I tried to run

heroku run pip install gunicorn

and he told me that he successfully installed gunicorn-19.3.0. But when I tried to launch it on Heroku using

heroku run gunicorn

he gave me the message "bash: gunicorn: command not found".

+4
source share
2 answers

Add gunicornto requirements.txt.

12- , , heroku run, ephemeral.

0

requirements.txt

gunicorn==19.7.1

0

All Articles