Capistrano v2.8.0에서 매우 신선한 capifony를 통해 배포하는 데 문제가 있습니다. 첫 번째 Capistrano/capifony 배포입니다.Capifony 배치는 "복제품을 얻을 수 없습니다"
나는 cap deploy : setup을 성공적으로 마쳤으며 이제 cap deployment : cold를 실행해야합니다. SSH 통신은 잘 작동하지만 때문에 SSH 권한의 자식 클론 명령을 실행할 수 없습니다 :
* executing "git clone -q [email protected]:palmic/www.myproject.com.git /home/palmic/web/hostik.cz/palmic/releases/20110823122821 && cd /home/palmic/web/hostik.cz/palmic/releases/20110823122821 && git checkout -q -b deploy 7407672c0a59ad631ea2f1f1d71fb15c2f68ac30 && (echo 7407672c0a59ad631ea2f1f1d71fb15c2f68ac30 > /home/palmic/web/hostik.cz/palmic/releases/20110823122821/REVISION)"
servers: ["hostik.cz"]
[hostik.cz] executing command
** [hostik.cz :: err] Permission denied (publickey).
** fatal: The remote end hung up unexpectedly
command finished in 3123ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/palmic/web/hostik.cz/palmic/releases/20110823122821; true"
servers: ["hostik.cz"]
[hostik.cz] executing command
command finished in 164ms
내가 SSH 세션으로 로그인이 수동으로 실시 그것을 요청 SSH 암호를 호출 할 때. 내가 같은 패스 프레이즈를 채울 때 : deploy.rb의 scm_passphrase가 다음 복제가 성공적으로 완료됩니다. 카피 스트라 노는 설치시 암호문을 채울 수없는 것처럼 보입니다.
BTW. ssh_options [: forward_agent] = true/false 아무 이유도 알지 못합니다. ?? (내가 에이전트 포워딩 내 ~/스푸핑/설정에서 허용 한) :
는Host *hostik.cz
ForwardAgent yes
Host *
ForwardAgent no
내 deploy.rb :
set :application, "app"
set :domain, "hostname"
set :deploy_to, "remotepath"
set :use_sudo, false
set :repository, "[email protected]:palmic/myproject.git"
set :scm, :git
set :user, "my remote username"
set :scm_passphrase, "my ssh passphrase on remote host"
set :branch, "git project deploy branchname"
set :scm_verbose, true
role :web, domain # Your HTTP server, Apache/etc
role :app, domain # This may be the same as your `Web` server
role :db, domain, :primary => true # This is where Rails migrations will run
set :keep_releases, 3
ssh_options[:forward_agent] = true
내가 어떤 원래 버그 스피없는 것이 아니다 알고는 아무도 않습니다 알고있다?
절대적으로 좋은, 감사합니다! – palmic
여러분을 환영합니다! – Daan