私は Capistrano と Ruby にまったく慣れていないので、基本的な展開をセットアップできないようです。cap deploy:check を実行するたびに、次のエラーが表示されます。
サーバー: ["domain.com"] 接続に失敗しました: me@domain.com (Net::SSH::HostKeyMismatch: 指紋 0c:de:d4: 1b:e9:64:83:3a:8b:d7:c3: 42:98:5b:5d:8c は "[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) をサーバーの既知のホストのリストに追加しようとしましたが、うまくいきませんでした。
どんな提案でも大歓迎です。助けてくれてありがとう。