0
我一直在嘗試將我的應用程序部署到vps並出現此錯誤!錯誤:#SSHKit :: Runner :: ExecuteError:在主機[host]上執行時出現異常:getaddrinfo:沒有這樣的主機是已知的
這裏是我的deploy.rb
# config valid only for Capistrano 3.1
lock '3.2.1'
set :application, 'appname'
set :repo_url, 'https://[email protected]/'
set :branch, 'master'
set :scm, :git
set :deploy_to, '/home/dir'
set :deploy_via, :remote_catche
set :user, "user"
set :scm_username, "username"
set :use_sudo, false
#default_run_options[:pty] = true tried uncomenting this and it threw me an error
# Default value for :scm is :git
# Default value for :format is :pretty
# set :format, :pretty
# Default value for :log_level is :debug
# set :log_level, :debug
namespace :deploy do
desc "Restart nginx"
task :restart do
run "#{deploy_to}/bin/restart"
end
end
這裏是我的production.rb
role :app, %w{web334.webfaction.com}
role :web, %w{web334.webfaction.com}
role :db, %w{postgres}
我能做些什麼來succesfuly部署這個應用程序,幫助
它仍然給我這個錯誤,SSHKit :: Runner :: ExecuteError:在主機上執行時出現異常web334.webfactio n.com?:getaddrinfo:沒有這樣的主機是已知的。 – user2903934 2014-09-02 16:19:13