私はCapistrano(私は今日まで使用したことのない)で展開しようとしているRailsアプリケーションを持っています。 cap deploy
を実行すると、私はDNSスプーフィングの警告を受け取ります。私は出力hereを貼り付けました。CapistranoはSSHだけでもうまくいくかもしれないのにDNSスプーフィングの警告を出します
~/.ssh/known_hosts
を削除しても、私はまだなりすましの警告を受け取ります。また、私は偽装の警告なしに、私のサーバーにSSHで接続できます。 (私はRSAキーを設定しています)
これはなぜ起こっているのでしょうか?ここに私のconfig/deploy.rb
です:
ssh://[email protected]/var/git/snip.git
から、あなたのレポのクローンを作成するとき
require "bundler/capistrano"
set :user, "jason"
set :domain, "sniphq.com"
set :application, "Snip"
set :repository, "ssh://[email protected]/var/git/snip.git"
set :scm, "git"
set :branch, "master"
set :git_shallow_clone, true
set :scm_verbose, true
role :web, domain # Your HTTP server, Apache/etc
role :app, domain # This may be the same as your `Web` server
role :db, domain, :primary => true # This is where Rails migrations will run
set :deploy_to, "/home/jason/snip-cap"
set :deploy_via, :export
# if you're still using the script/reaper helper you will need
# these http://github.com/rails/irs_process_scripts
# If you are using Passenger mod_rails uncomment this:
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
end
end
修正済みです。ありがとう。 –
また、 'ssh:// jason @ sniphq.com/var/git/snip.git'から'/var/git/snip.git'に変更しました。それはサーバーSSHを持っているのが変だと感じています。それはちょうどいいです。 –
別のサーバーにも展開しているかどうかはわかりませんでした。その後、それは意味をなさないでしょう。 – iltempo