{"repo":"thoughtbot/parity","free":true,"listed":false,"github":"https://github.com/thoughtbot/parity","clone":"git clone https://github.com/thoughtbot/parity.git","description":"Shell commands for development, staging, and production parity for Heroku apps","language":"Ruby","stars":892,"topics":["heroku-apps","developer-tools","twelve-factor","ruby"],"license":"MIT","category":"dev-tools","readme_excerpt":"Parity ====== Shell commands for development, staging, and production parity for Heroku apps. Install ------- gem install parity Or bundle it in your project: gem \"parity\" [releases]: https://github.com/thoughtbot/parity/releases Parity requires these command-line programs: git heroku pg restore Usage ----- Backup a database: production backup staging backup Restore a production or staging database backup into development: development restore production development restore staging Or, if restore-from reads better to you, it's the same thing: development restore-from production development restore-from staging Note that the restore command will use the most recent backup (from staging or production ). You may first need to create a more recent backup before restoring, to prevent download of a very old backup. Push your local development database backup up to staging: staging restore development Deploy main to production (note that prior versions of Parity would run database migrations, that's now better handled using [Heroku release phase]): production deploy [Heroku release phase]: https://devcenter.heroku.com/articles/release-phase Deploy the current branch to staging: staging deploy Note that deploys to non-production environments use git push --force . Open a console: production console staging console pr app 1234 console Migrate a database and restart the dynos: production migrate staging migrate pr app 1234 migrate Tail a log: production tail staging tail pr app 1234 tai","default_branch":null,"files":null,"tree":[],"storefront":"/r/thoughtbot","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/thoughtbot/parity/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}