2012-06-20 190 views
0

我在使用Capistrno将Rails 3项目部署到linode VDS时遇到了麻烦。错误看起来像:Capistrano初始部署失败

[email protected]:~/projects/ruby/avtolife$ cap deploy:update 
    * executing `deploy:update' 
** transaction: start 
    * executing `deploy:update_code' 
    updating the cached checkout on all servers 
    executing locally: "git ls-remote [email protected]:lifecoder/avtolife.git master" 
    command finished in 2964ms 
    * executing "if [ -d /srv/avtolife/shared/cached-copy ]; then cd /srv/avtolife/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard aec5c7f44151ca74d8eb384c478d6707719ee680 && git clean -q -d -x -f; else git clone -q [email protected]:lifecoder/avtolife.git /srv/avtolife/shared/cached-copy && cd /srv/avtolife/shared/cached-copy && git checkout -q -b deploy aec5c7f44151ca74d8eb384c478d6707719ee680; fi" 
    servers: ["original-parts.net"] 
    [[email protected]] executing command 
** [original-parts.net :: err] Host key verification failed. 
** [original-parts.net :: err] fatal: The remote end hung up unexpectedly 
    command finished in 1401ms 
*** [deploy:update_code] rolling back 
    * executing "rm -rf /srv/avtolife/releases/20120620203352; true" 
    servers: ["original-parts.net"] 
    [[email protected]] executing command 
    command finished in 588ms 
    failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell '1.9.2' -c 'if [ -d /srv/avtolife/shared/cached-copy ]; then cd /srv/avtolife/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard aec5c7f44151ca74d8eb384c478d6707719ee680 && git clean -q -d -x -f; else git clone -q [email protected]:lifecoder/avtolife.git /srv/avtolife/shared/cached-copy && cd /srv/avtolife/shared/cached-copy && git checkout -q -b deploy aec5c7f44151ca74d8eb384c478d6707719ee680; fi'" on [email protected] 

我需要一个关于如何跟踪特定错误完成的想法。我很新的* nix和rails,所以配置的一些部分看起来像我的魔术:(

回答

0

当Capistrano部署出现问题时 - 在远程服务器上逐个运行场景命令。目标服务器 - 本地Ubuntu要求远程IP地址接受,并且在没有来自脚本脚本的应答时死掉。接受同样的脚本运行良好。