Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.