This is a kind of second version of https://gist.github.com/4208338, but in this version you don't need to call projectName_production
or projecName_staging
only production
or staging
.
If you have git remotes called production, staging and development already, then then the only thing you have to do is to source heroku_command_line_wrapper_with_app_name.sh
in your .bash_profile
or .bashrc
:
source /path/to/heroku_command_line_wrapper_with_app_name.sh