Skip to content

Instantly share code, notes, and snippets.

@amitittyerah
Created April 11, 2014 04:58
Show Gist options
  • Save amitittyerah/10441593 to your computer and use it in GitHub Desktop.
Save amitittyerah/10441593 to your computer and use it in GitHub Desktop.
Django deployment with Heroku
pip install django-toolbelt
nano Procfile
foreman
foreman start
pip freeze > requirements.txt
sudo pip install dj_database_url
heroku create
git init
git add -A
git commit -m ''
git push heroku master
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U
heroku open
heroku run <cmd>
heroku pg:reset DATABASE_URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment