Я пытаюсь развернуть приложение для рельсов, используя Passenger и Capistrano на Dreamhost. Я использую Git как контроль версий, и мы купили учетную запись у GitHub.Capistrano + Git + DreamHost
Я установил все необходимые драгоценные камни, пассажирские и капистрано на моей локальной машине, и я клонировал репозиторий моего проекта из GitHub на своей локальной машине.
Согласно поддержке Dreamhost, на их сервере также есть Пассажир, Рубин, Рельсы и т. Д.
В настоящее время я следую за этой статьей http://github.com/guides/deploying-with-capistrano для моего развертывания.
Ниже приведено мое deploy.rb.
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
# be sure to change these
set :user, 'gituser'
set :domain, 'github.com'
set :application, 'MyProjectOnGit'
#[email protected]:MyProjectOnGit.git
# the rest should be good
set :repository, "[email protected]:MyProjectOnGit.git"
set :deploy_to, "/ruby.michaelsync.net/"
set :deploy_via, :remote_cache
set :scm, 'git'
set :branch, 'master'
set :git_shallow_clone, 1
set :scm_verbose, true
set :use_sudo, false
set :git_enable_submodules, 1
server domain, :app, :web
role :db, domain, :primary => true
set :ssh_options, { :forward_agent => true }
namespace :deploy do
task :restart do
run "touch #{current_path}/tmp/restart.txt"
end
end
Когда я запускаю «развертывание крышки», я получаю ошибку ниже.
[deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: github.com (Net::SSH::AuthenticationFailed: gituser) connection failed for: github.com (Net::SSH::AuthenticationFailed: gituser)
Заранее спасибо ..
Мой проект на GitHub не является публичным проектом. Итак, я нашел только частный URL. –