我对Capistrano和
Ruby完全是新的,我似乎无法基本部署设置.每次运行cap部署:检查我得到以下错误:
servers: [“domain.com”]
connection Failed for: me@domain.com (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”
)
我的deploy.db看起来像这样:
set :stages,%w(production staging) set :default_stage,"staging" require 'capistrano/ext/multistage' set :application,"captest" # TODO set :repository,"git@bitbucket.org: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)添加到我的服务器上的known_hosts列表中,没有运气.
任何建议将不胜感激.非常感谢您的帮助.