0

gem を更新したところ、capコマンドを実行しようとすると次のエラーが表示されます。

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

私の宝石のバージョンは次のとおりです。

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

そして、私の config/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, "git@github.com: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

この問題を解決する方法はありますか?

4

1 に答える 1

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
于 2013-09-01T03:05:02.060 に答える