Created
December 4, 2012 20:28
-
-
Save rafmagana/4208338 to your computer and use it in GitHub Desktop.
heroku commands with app wrapper
This file contains hidden or 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
## 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