capistrano挂在git clone

时间:2012-04-28 16:21:13

标签: git ssh capistrano

使用此配置cap deploy始终挂起:

set :application, "myapp"
set :scm, :git
set :repository,  "https://myuser@bitbucket.org/myuser/myapp.git"
set :branch, "mybranch"
role :web, "myvserver.stratoserver.net"
role :app, "myvserver.stratoserver.net"
set :deploy_to, "/var/www-test"
set :user, "philip"
set :group, "www-data"

需要输入密码3次:

  1. 对于bitbucket
  2. 对于myvserver.stratoserver.net。总是这似乎会产生错误,让我第三次进入......
  3. 我输入它,一切都挂了
  4. 在服务器端ps ax给出:

     3116 ?        Ss     0:00 sh -c git clone -q https://myuser@bitbucket.org/myuser/myapp.git /var/www-test/releases/201204281610
     3117 ?        S      0:00 git clone -q https://myuser@bitbucket.org/myuser/myapp.git /var/www-test/releases/20120428161055
     3118 ?        S      0:00 git-remote-https https://myuser@bitbucket.org/myuser/myapp.git https://myuser@bitbucket.org/myus
    

    完整的capistrano输出在这里:http://pastebin.com/Ffqpqq7y

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,我的问题与ssh-keys有关。我已经重新生成了ssh-key并使其正常工作。希望它有所帮助..