Skip to content

Commit

Permalink
Make deploy run default to the current deploy directory.
Browse files Browse the repository at this point in the history
This allows things like 'deploy run rake db:migrate' or 'deploy run npm update' work the way one would probably expect.
  • Loading branch information
bronson committed Jun 18, 2012
1 parent 009572f commit 8498502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/deploy
Expand Up @@ -340,7 +340,7 @@ while test $# -ne 0; do
-c|--config) set_config_path $1; shift ;; -c|--config) set_config_path $1; shift ;;
-C|--chdir) log cd $1; cd $1; shift ;; -C|--chdir) log cd $1; cd $1; shift ;;
-T|--no-tests) TEST=0 ;; -T|--no-tests) TEST=0 ;;
run|exec) require_env; run "cd `config_get path` && $@"; exit ;; run|exec) require_env; run "cd `config_get path`/current && $@"; exit ;;
console) require_env; console; exit ;; console) require_env; console; exit ;;
curr|current) require_env; current_commit; exit ;; curr|current) require_env; current_commit; exit ;;
prev|previous) require_env; nth_deploy_commit 2; exit ;; prev|previous) require_env; nth_deploy_commit 2; exit ;;
Expand Down

0 comments on commit 8498502

Please sign in to comment.