2013-08-31 3 views
0

cap 명령을 실행하려고하면 내 보석이 업데이트되고 다음 오류가 표시되지 않습니다.Capistrano 오류 : 일치하는 서버가 없습니다. {: once => true, : eof => true}

no servers found to match {:once=>true, :eof=>true} 

내 보석 버전은 다음과 같습니다

capistrano (2.15.5) 
capistrano-platform-resources (0.1.3) 
capistrano-rbenv (1.0.5) 

그리고 내 설정/deploy.rb 뭔가 같습니다

# the name of the application 
set :application, "appname" 

# RVM 
require "capistrano-rbenv" 
set :rbenv_ruby_version, "1.9.3-p194" 

# Bundler 
require "bundler/capistrano" 

# General 

# this should be the username on the server 
set :user, "deploy" 

# the path to install the application in on the server 
set :deploy_to, "/home/#{user}/path/to/#{application}" 
# Setting this to 'remote_cache' will ensure that only 
# changes are sent to the server, not the whole repository 
# NOTE: Can only use remote_cache in conjunction with github repos 
set :deploy_via, :remote_cache 

set :use_sudo, false 

# Git 

# Github say I need this, thus I need it 
# INFO: http://help.github.com/deploy-with-capistrano/ 
default_run_options[:pty] = true 

ssh_options[:forward_agent] = true 

set :scm, :git 
set :repository, "[email protected]:dtuite/#{application}.git" 
# the local location of the app. 
# which branch to checkout during deploy 
set :branch, "master" 

# the IP address of the VPS 
server "[the server ip]", :web, :app, :db, primary: true 

모든 아이디어를 어떻게이 문제를 해결하는 방법?

답변

0

한번에과 같이, 별도로

# the IP address of the VPS 
server "[the server ip]", :web, :app, :db, primary: true 

그리고 선언 도메인을 삭제 - 다음

# App Domain 
    set :domain, "yourdomain.com or IP address" 

그리고이 삭제 한 라인 교체 -

# All components of the app on the same server 
server domain, :app, :web, :db, :primary => true 
+0

이 답변의 일부 조합을 서버 선언을'config/deploy.rb'의 맨 위로 옮기면 문제가 해결 된 것으로 보입니다. 감사. –