Tamamen Capistrano ve Ruby'ye yeni yaşıyorum ve temel kurulum kurulumu yapamıyorum. Her zaman kap dağıtmaya çalıştırın: aşağıdaki hatayı alıyorum kontrol edin:Capistrano Hatası - Net :: SSH :: HostKeyMismatch
Benim deploy.db şöyleservers: ["domain.com"] connection failed for: [email protected] (Net::SSH::HostKeyMismatch: fingerprint 0c:de:d4: 1b:e9:64:83:3a:8b:d7:c3:42:98:5b:5d:8c does not match for "[domain.com]:22,[62.39.11.2]:22" )
: Ben yerel bilgisayarlar genel anahtarı ekleyerek denedim
set :stages, %w(production staging)
set :default_stage, "staging"
require 'capistrano/ext/multistage'
set :application, "captest" # TODO
set :repository, "[email protected]:jy312/captest.git" # TODO
set :scm, :git
set :use_sudo, false
ssh_options[:forward_agent] = true
default_run_options[:pty] = true
set :deploy_via, :remote_cache
set :copy_exclude, [".git", ".DS_Store", ".gitignore", ".gitmodules"]
set :git_enable_submodules, 1
(id_rsa.pub) şanssız bir şekilde sunucumdaki bilinen_hosts listesine.
Her türlü öneri çok takdir edilecektir. Yardım için çok teşekkürler.
deploy.rb Bu mükemmel çalıştı. Yardım için çok teşekkürler. – jg314