cap deploy
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git@xxx.xxx.xxx.xxx:project.git master"
* executing "if [ -d /sites/myapp/shared/cached-copy ]; then cd /sites/myapp/shared/cached-copy && git fetch -q origin && git reset -q --hard 86986227112008cc26acb1b49647dd0443dc0e1e && git clean -q -d -x -f; else git clone -q git@xxx.xxx.xxx.xxx:project.git /sites/myapp/shared/cached-copy && cd /sites/myapp/shared/cached-copy && git checkout -q -b deploy 86986227112008cc26acb1b49647dd0443dc0e1e; fi"
servers: ["xxx.xxx.xxx.xxx"]
[user_name@xxx.xxx.xxx.xxx] executing command
** [xxx.xxx.xxx.xxx :: err] fatal: Not a git repository (or any of the parent directories): .git
command finished
*** [deploy:update_code] rolling back
* executing "rm -rf /sites/myapp/releases/20110729183831; true"
servers: ["xxx.xxx.xxx.xxx"]
[user_name@xxx.xxx.xxx.xxx] executing command
command finished
failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'ree' -c 'if [ -d /sites/myapp/shared/cached-copy ]; then cd /sites/myapp/shared/cached-copy && git fetch -q origin && git reset -q --hard 86986227112008cc26acb1b49647dd0443dc0e1e && git clean -q -d -x -f; else git clone -q git@xxx.xxx.xxx.xxx:project.git /sites/myapp/shared/cached-copy && cd /sites/myapp/shared/cached-copy && git checkout -q -b deploy 86986227112008cc26acb1b49647dd0443dc0e1e; fi'" on user_name@xxx.xxx.xxx.xxx
локально git clone user_name@xxx.xxx.xxx.xxx:project.git - все работает отлично
делаю по инструкции http://habrahabr.ru/blogs/ror/120368/
Комментариев нет:
Отправить комментарий