Monday, 18 July 2016

Heroku Django Commands

Useful commands:
  • heroku run python manage.py migrate
  • heroku config:set DISABLE_COLLECTSTATIC=1

Initialize repo

clone your existing repo from git, remove .git and do following


$ cd my-project/
$ git init
$ heroku git:remote -a quickorders
 
Login to remote shell
$ heroku run bash 


References:
  • https://devcenter.heroku.com/articles/getting-started-with-python#push-local-changes
  • https://devcenter.heroku.com/articles/deploying-python
  • https://devcenter.heroku.com/articles/django-app-configuration


Tips:
  • Do "git push" migrations files


No comments:

Post a Comment