Heroku Deployment

From Code Self Study Wiki
Jump to: navigation, search

Resources for deploying on Heroku.

Python[edit]

Django[edit]

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 0.0.0.0:\$PORT --noreload" > Procfile

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

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

Creates project:

heroku create

Pushes code to Heroku:

git push heroku master

Flask[edit]

  • TODO

Node.js[edit]

  • TODO