Deploying django app using heroic - gunicorn not installing

I am trying to deploy a simple Django application. I have a requirements.txt file with the declared number of dependencies. When I click on the hero, he says that he establishes the dependencies that I declare:

Downloading/unpacking gunicorn==19.1.1 (from -r requirements.txt (line 9))
Running setup.py (path:/tmp/pip_build_u52128/gunicorn/setup.py) egg_info for package   gunicorn

However, when I run the command "heroku ps: scale web = 1" (as recommended in the heroku tutorial), I get the following output:

Scaling dynos... done, now running web at 1:1X.

When I check "heroku ps", I get the following output:

=== web (1X): gunicorn poem_maker.wsgi:application
web.1: crashed 2015/01/08 10:46:14 (~ 3m ago)

Looking at the logs, I see the following output:

2015-01-08T06:46:14.481013+00:00 heroku[web.1]: Starting process with command gunicorn poem_maker.wsgi:application
2015-01-08T06:46:15.214361+00:00 app[web.1]: bash: gunicorn: command not found

It seems to me that I am doing it right - the gun command must be found!

Thank,

Dean

+4
source share
2 answers

, Procfile

gunicorn poem_maker.wsgi:application

web: gunicorn poem_maker.wsgi.

0

, ,

pip install gunicorn
0

Source: https://habr.com/ru/post/1570416/


All Articles