我試圖讓Capistrano的部署腳本的工作,在我的部署文件,我有以下...Capistrano的部署問題
set :application, "example.com"
role :app, "[email protected]"
role :web, "[email protected]"
role :db, "[email protected]", :primary => true
set :user, "root"
set :deploy_to, "/example/www/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, false
set :keep_releases, 10
namespace :deploy do
desc "Tell Passenger to restart the app."
task :restart do
run "touch #{current_path}/tmp/restart.txt"
end
desc "Symlink shared configs and folders on each release."
task :symlink_shared do
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
run "ln -nfs #{shared_path}/assets #{release_path}/public/assets"
end
desc "Sync the public/assets directory."
task :assets do
system "rsync -vr --exclude='.DS_Store' public/assets #{user}@#{application}:#{shared_path}/"
end
end
after 'deploy:update_code', 'deploy:symlink_shared'
我也有在部署文件中的GitHub的位置和SCM變量。當我運行cap deploy
它開始關閉,要求github私人回購的用戶名/密碼,我輸入,它的罰款。是成功和正確地拉動代碼,然後後,我得到了folllowing ...
執行「如果[-d /example/www/example.com/shared/cached-copy]; 然後CD /例子/ WWW/example.com /共享/高速緩存拷貝& & GIT中取-q 原點& & GIT中取--tags -q原點& & GIT中復位-q --hard 93e3327f29a9e66fa2755562bfe9bc4412 & & GIT中乾淨-q -d -x -f; else git clone -q https://github.com/example/example.git /example/www/social u.com/s hared /緩存拷貝& & CD /example/www/example.com/shared/cached-copy & & git的結帳-q -b 部署93e3327f29a9e66fa2755562bfe9bc4412;網絡連接」 服務器:‘12.34.56.789’]密碼:
所以要求輸入密碼我猜這是SSH我輸入root用戶的密碼,但隨後未能顯示。這...
[12.34.56.789] executing command
** [12.34.56.789 :: err] Username:
我試過也沒有進入所有密碼,我得到以下....
Capistrano的:: ConnectionError,連接失敗 (淨:: SSH :: AuthenticationFailed:root)
問題是我輸入了正確的ssh密碼......我可以使用膩子ssh。順便說一句我在我的本地Windows PC上運行cap部署,而遠程盒子是一個linux盒子。當然,我的位置不是12.34.56.78,但你明白了。任何想法如何解決?
這擺脫了第一次密碼檢查,這很好,但問題中提到的第二個密碼仍然顯示出於某種原因。 – HelloWorld