Skip to content

Instantly share code, notes, and snippets.

@rafaelp
Created September 6, 2010 17:22
Show Gist options
  • Save rafaelp/567287 to your computer and use it in GitHub Desktop.
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.
#!/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