Heroku Deployment

From Code Self Study Wiki
Jump to: navigation, search

Resources for deploying on Heroku.



Heroku needs two files: requirements.txt and Procfile:

pip freeze > requirements.txt

web: gunicorn myproject.wsgi

Another tutorial said to do this, but it looks like Django's built-in server:

echo "web: python manage.py runserver\$PORT --noreload" > Procfile

Watch out for the path of manage.py. It might have to be something like:

web: python myproject/manage.py runserver$PORT --noreload

Creates project:

heroku create

Pushes code to Heroku:

git push heroku master


  • TODO


  • TODO