使用此配置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次:
在服务器端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
答案 0 :(得分:0)
我遇到了同样的问题,我的问题与ssh-keys有关。我已经重新生成了ssh-key并使其正常工作。希望它有所帮助..