Skip to content

Instantly share code, notes, and snippets.

@RamonPage
Forked from rafaelp/h.sh
Created July 21, 2011 18:41
Show Gist options
  • Save RamonPage/1097864 to your computer and use it in GitHub Desktop.
Save RamonPage/1097864 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