Skip to content

Instantly share code, notes, and snippets.

@rafmagana
Created December 4, 2012 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafmagana/4208338 to your computer and use it in GitHub Desktop.
Save rafmagana/4208338 to your computer and use it in GitHub Desktop.
heroku commands with app wrapper
## Usage
# $ project_staging logs
# $ project_staging logs -t
# $ project_staging config:get MONGOHQ_URL
# $ project_staging run console
# $ project_production ps
# $ project_production logs -n 3 -p worker.4 -s app -t
function project_staging
{
execute_heroku_command_with_app my_heroku_app_name_staging $@
}
function project_production
{
execute_heroku_command_with_app my_heroku_app_name_production $@
}
function execute_heroku_command_with_app
{
heroku ${@:2} --app=$1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment