ssh の使用時にパスワードの入力を求めるプロンプトが表示されないため、ssh キーは間違いなく正しく設定されています。ただし、capistrano は .NET でデプロイするときにパスワードを要求しますcap deploy
。cap deploy:setup
奇妙なことに、セットアップ時にパスワードを要求されません。パスワードプロンプトがなくても、展開サイクルが非常にスムーズになります.
詳細: Sinatra アプリを Dreamhost 共有アカウント (Passenger を使用) にデプロイしています。私はずっと前に行うためのチュートリアルに従っていましたが、当時は完全に機能していました。それ以来、何かが壊れました。カピストラーノ (2.5.9) と git バージョン 1.6.1.1 を使用しています。これが私のCapfileです:
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
set :user, 'ehsanul'
set :domain, 'jellly.com'
default_run_options[:pty] = true
# the rest should be good
set :repository, "ehsanul@jellly.com:git/jellly.git"
set :deploy_to, "/home/ehsanul/jellly.com"
set :deploy_via, :remote_cache
set :scm, 'git'
set :branch, 'deploy'
set :git_shallow_clone, 1
set :scm_verbose, true
set :use_sudo, false
server domain, :app, :web
namespace :deploy do
task :migrate do
run "cd #{current_path}; /usr/bin/rake migrate environment=production"
end
task :restart do
run "touch #{current_path}/tmp/restart.txt"
end
end
after "deploy", "deploy:migrate"
cap deploy
そして、パスワードプロンプトまでのI の場合の出力は次のとおりです。
$ cap deploy
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote ehsanul@jellly.com:git/jellly.git deploy"
/usr/local/bin/git
* executing "if [ -d /home/ehsanul/jellly.com/shared/cached-copy ]; then cd /home/ehsanul/jellly.com/shared/cached-copy && git fetch origin && git reset --hard ea744c77b0b939d5355ba2dc50ef1ec85f918d66 && git clean -d -x -f; else git clone --depth 1 ehsanul@jellly.com:git/jellly.git /home/ehsanul/jellly.com/shared/cached-copy && cd /home/ehsanul/jellly.com/shared/cached-copy && git checkout -b deploy ea744c77b0b939d5355ba2dc50ef1ec85f918d66; fi"
servers: ["jellly.com"]
[jellly.com] executing command
** [jellly.com :: out] ehsanul@jellly.com's password:
Password:
** [jellly.com :: out]
** [jellly.com :: out] remote: Counting objects: 7, done.
remote: Compressing objects: 100% (4/4), done.
何が壊れる可能性がありますか?