thoughtbot / parity

Shell commands for development, staging, and production parity for Heroku apps
https://thoughtbot.com
MIT License
895 stars 57 forks source link

Add `pr_app` executable for running Heroku CLI commands on review apps #149

Closed geoffharcourt closed 6 years ago

geoffharcourt commented 6 years ago

This change adds a pr_app executable that can be used to run commands on a review application that is part of the same Heroku Pipeline as the application on the staging Git remote. If you had a staging application called my-staging-app, and a review application whose Heroku application name was my-staging-app-pr-1234, you would tail the logs with:

pr_app 1234 tail

Review applications don't get an automatic local Git remote, but because they share a name with the staging application, we can leverage the naming scheme to build up an app name.