From 84985029ddcdba332cabee256492b9b5f97d04ac Mon Sep 17 00:00:00 2001 From: Scott Bronson Date: Mon, 18 Jun 2012 13:57:42 -0700 Subject: [PATCH] Make `deploy run` default to the current deploy directory. This allows things like 'deploy run rake db:migrate' or 'deploy run npm update' work the way one would probably expect. --- bin/deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/deploy b/bin/deploy index 855c49a..fa475eb 100755 --- a/bin/deploy +++ b/bin/deploy @@ -340,7 +340,7 @@ while test $# -ne 0; do -c|--config) set_config_path $1; shift ;; -C|--chdir) log cd $1; cd $1; shift ;; -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 ;; curr|current) require_env; current_commit; exit ;; prev|previous) require_env; nth_deploy_commit 2; exit ;;