[Answer]-How do I declare process type with Procfile?


You should create file with the name Procfile and simply paste web: gunicorn hellodjango.wsgi there.

So, for example, your git repository located here: /Users/admin/git/hellodjango/. Then, you need to place Procfile right in this directory.

cd /Users/admin/git/hellodjango/
touch Procfile

And open it with any text editor and paste web: gunicorn hellodjango.wsgi.

After you commit and push your changes to Heroku cloud, it will automatically detect application type declarated in Procfile and run it.

Leave a comment