2012-04-28 76 views
0

利用这种配置cap deploy总是挂起:Capistrano的挂在混帐克隆

set :application, "myapp" 
set :scm, :git 
set :repository, "https://[email protected]/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. 对于到位桶
  2. 对于myvserver.stratoserver.net。而且总是这似乎产生一个错误,让我进入这第三次...
  3. 我进入这一切都只是挂

在服务器端ps ax给出:

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

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

+0

我面临着同样的问题,我的问题是使用ssh-keys.I有关的人再生的SSH密钥,并得到了它working.Hope它可以帮助.. – Naveen 2012-04-28 16:40:08

+0

其实整体配置目前没有SSH密钥。但实际上我现在会改变它。 – Philip 2012-04-28 16:43:59

+0

是的,让我知道。试用ssh -V进行调试。 – Naveen 2012-04-28 16:45:11

回答

0

我面临同样的问题,我的问题与ssh-keys有关。我重新生成了ssh-keys并使其工作。希望它有帮助..

+0

所有我现在用SSH密钥后好多了,你的解决方案的工作! (+我不得不手动登录一次通过ssh,执行远程机器上的克隆,说“是”接受键) – Philip 2012-05-03 17:10:57

+0

“做一个克隆的远程机器上,并说‘是’接受键” 谁不接受你这样做的关键? – meandre 2013-01-03 10:38:28