Checklist for developers to push code to Heroku
- Developer needs to be added as collaborator for the heroku app.
- Developer needs to add the right heroku git repo in his project.
- git remote add heroku git@heroku.com:<app-name>.git
- git push heroku master (to push code to heroku git repo)
- heroku logs (to check the log entries, verify if the app crashed or running)
- To run python commands shell or syncdb use heroku run.
- heroku run python manage.py shell
- heroku run python manage.py syncdb
- To run SQL on Heroku
- heroku pg:psql
- cat magic.sql | heroku pg:psql (to run the SQL statements from magic.sql file)
- To capture url of backed up database (https://devcenter.heroku.com/articles/pgbackups)
- heroku pgbackups:url
- refer to the link above for import/export of data.
- heroku's documentation is very good and saves us lot of effort
Ha. I see his idea of extreme simplicity.
ReplyDelete