-
-
Save rafaelp/567287 to your computer and use it in GitHub Desktop.
Shell script to skip typing --app XXX on heroku commands when you have more than one enviroment like staging and production.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eux | |
exec heroku "$@" --app "`basename $PWD`-staging" | |
#!/bin/bash | |
set -eux | |
exec heroku "$@" --app "`basename $PWD`-production" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment