Tôi hoàn toàn mới với Capistrano và Ruby, và tôi dường như không thể thiết lập triển khai cơ bản. Mỗi lần tôi chạy nắp triển khai: kiểm tra tôi nhận được lỗi sau:Lỗi Capistrano - Net :: SSH :: HostKeyMismatch
servers: ["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" )
deploy.db của tôi trông như thế này:
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
Tôi đã thử thêm các máy tính địa phương của tôi khóa công khai (id_rsa.pub) vào danh sách các known_host trên máy chủ của tôi mà không có may mắn.
Mọi đề xuất sẽ được đánh giá rất nhiều. Cảm ơn rất nhiều vì đã giúp đỡ.
này đã làm việc một cách hoàn hảo. Cảm ơn rất nhiều vì đã giúp đỡ. – jg314