【问题标题】:Capistrano initial deployment failedCapistrano 初始部署失败
【发布时间】:2012-06-20 20:41:08
【问题描述】:

在将带有 Capistrno 的 Rails 3 项目部署到 linode VDS 时遇到问题。错误看起来像:

lifecoder@lifecoder-VirtualBox:~/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 git@bitbucket.org: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 git@bitbucket.org: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"]
    [lifecoder@original-parts.net] 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"]
    [lifecoder@original-parts.net] 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 git@bitbucket.org:lifecoder/avtolife.git /srv/avtolife/shared/cached-copy && cd /srv/avtolife/shared/cached-copy && git checkout -q -b deploy aec5c7f44151ca74d8eb384c478d6707719ee680; fi'" on lifecoder@original-parts.net

我需要了解如何跟踪特定错误发生的位置。我是 *nix 和 rails 的新手,所以配置的某些部分对我来说看起来很神奇:(

【问题讨论】:

    标签: ruby-on-rails-3 capistrano vps


    【解决方案1】:

    当 Capistrano 部署出现问题时 - 在远程服务器上一一运行场景命令。我的问题出在目标服​​务器上——本地 Ubuntu 要求接受远程 IP 地址,并在 cap 脚本没有回答时死掉。接受后,相同的脚本运行良好。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多