0

Rails 3.2 アプリをデプロイしたいのですが、コンソールに次のエラーが表示されます。

[deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection          failed for: IP_ADDRESS (Net::SSH::AuthenticationFailed: deploy)
connection failed for: IP_ADDRESS (Net::SSH::AuthenticationFailed: deploy)

私の展開ファイル:

set :domain , "DOMAIN"
set :application, "APP_NAME"
set :repository,  "MY_REPO"
set :scm, :git
set :scm_verbose, true
set :user, "deploy"
set :use_sudo, false
set :deploy_to, "/var/www/vhosts/default/htdocs/camplist_de/public/#{application}"
set :deploy_via, :remote_cache

set :branch, "master"

role :web, "IP_ADDRESS"
role :app, "IP_ADDRESS"
role :db,  "IP_ADDRESS", :primary => true

after "deploy:restart", "deploy:cleanup"

after "deploy", "deploy:bundle_gems"
after "deploy:bundle_gems", "deploy:restart"


namespace :deploy do
task :bundle_gems do
    run "cd #{deploy_to}/current && bundle install vendor/gems"
end
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "touch #{File.join(current_path,'tmp','restart.txt')}"
end
end

このコードには、元のデプロイ ファイルではなく、ドメインと IP の代わりにプレースホルダーがあります。

エラーを特定できず、助けが必要です。

4

0 に答える 0