문제

내가 노력하고 배포하 slicehost 슬라이스를 사용하여 이 config/deploy/생산입니다.rb 파일입니다.나는 우둔&를 사용하지 않은 카피스트라노기 전에 지금이다.단계는 다음과 같습니다 저는 그대로 따랐습니다.죄송하지만 나는 완전히 새로운 카피스트라노.고 내 비밀 번호(있을 설정 암호 없는 SSH),및 던지고 이 오류가 발생할 수 있습니다.

(SocketError: getaddrinfo: Name or service not known)
connection failed for: ---------.com (Net::SSH::AuthenticationFailed: -----)

첫째로,그것은'bort'응용 프로그램 http://github.com/fudgestudios/bort/tree/master

두 번째,내가 사용하는 ubuntu-기계 보석,자세한 여기:

http://suitmymind.github.com/ubuntu-machine/#screencast

config/deploy/생산입니다.rb

#############################################################
#   Application
#############################################################

set :application, "---------------"
set :deploy_to, "/var/www/#{application}"

#############################################################
#   Settings
#############################################################

default_run_options[:pty] = true
ssh_options[:forward_agent] = true
set :use_sudo, true
set :scm_verbose, true
set :rails_env, "production" 

#############################################################
#   Servers
#############################################################

set :user, "----------"
set :domain, "--------------------------"
server domain, :app, :web
role :db, domain, :primary => true

#############################################################
#   Git
#############################################################

set :scm, :git
set :branch, "master"
set :scm_user, '---------'
set :scm_passphrase, "----------"
set :repository, "git@github.com:--------/----------.git"
set :deploy_via, :remote_cache

#############################################################
#   Passenger
#############################################################

namespace :deploy do
  desc "Create the database yaml file"
  task :after_update_code do
    db_config = <<-EOF
    production:    
      adapter: mysql
      encoding: utf8
      username: root
      password: ------------
      database: ------------_production
      host: localhost
    EOF

    put db_config, "#{release_path}/config/database.yml"

    #########################################################
    # Uncomment the following to symlink an uploads directory.
    # Just change the paths to whatever you need.
    #########################################################

    desc "Symlink the assets directories"
     task :before_symlink do
       run "mkdir -p #{shared_path}/assets"
       run "ln -nfs #{shared_path}/assets #{release_path}/public/assets"
     end

  end

  # Restart passenger on deploy
  desc "Restarting mod_rails with restart.txt"
  task :restart, :roles => :app, :except => { :no_release => true } do
    run "touch #{current_path}/tmp/restart.txt"
  end

  [:start, :stop].each do |t|
    desc "#{t} task is a no-op with mod_rails"
    task t, :roles => :app do ; end
  end

end
도움이 되었습니까?

해결책

나는 문제가 될 것이라고 생각합니다

  • 호스트 이름을 해결할 수 없습니다
  • 당신은 오타가 잘못되었습니다 domain

만일을 대비하여 domain 대신 서버의 IP 주소가 될 가치가 있습니까?

다른 팁

"Socketerror : GetAddrinfo : 이름 또는 서비스가 알려지지 않았습니다" 원격 호스트를 해결하거나 연결하는 데 어떤 종류의 문제가 있음을 의미합니다. 수동으로 연결할 수 있는지 확인 했습니까?

방법 중 하나를 시작하는 디버깅 모자 스크립트가 수행하는 프로세스의 각 단계 자신입니다.을 복사할 수 있습니다 문서 직접 자세한 정보 모자를 출력합니다.해야 하는 문제를 격리하는 데 도움이 되는 이 경우에는 연결제(slicehost?, github?, 모두?).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top