2013-10-10 8 views
0

Вот мой deploy.rbCapistrano ошибка развертывания крышка прервана

set :application, "admin" 
set :repository, "here is my bitbucket repository" 

set :scm, :git 
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` 
set :branch, "master" 

set :rails_env, "production" 

set :deploy_via, :copy 

set :ssh_options, { forward_agent: true, port: 2020 } 

set :keep_releases, 5 

server "admin.mydomain.com", :app, :web, :db, primary: true 

set :deploy_to "/var/www/vhosts/admin" 

я упомянул две ссылки для настройки Capistrano

link 1 и link 2

когда я бегу cap deploy:setup

я получаю сообщение об ошибке как

cap aborted! 
cannot load such file -- deploy 
/home/seting/Documents/site/admin/Capfile:1:in `load' 
/home/seting/Documents/site/admin/Capfile:1:in `<top (required)>' 
/home/seting/.rvm/gems/ruby-2.0.0-p247/gems/capistrano-3.0.0/lib/capistrano/application.rb:22:in `load_rakefile' 
/home/seting/.rvm/gems/ruby-2.0.0-p247/gems/capistrano-3.0.0/lib/capistrano/application.rb:12:in `run' 
/home/seting/.rvm/gems/ruby-2.0.0-p247/gems/capistrano-3.0.0/bin/cap:3:in `<top (required)>' 
/home/seting/.rvm/gems/ruby-2.0.0-p247/bin/cap:23:in `load' 
/home/seting/.rvm/gems/ruby-2.0.0-p247/bin/cap:23:in `<main>' 
/home/seting/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `eval' 
/home/seting/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `<main>' 
(See full trace by running task with --trace) 

Edit 1

Это моя шапка файл

load 'deploy' 
# Uncomment if you are using Rails' asset pipeline 
    load 'deploy/assets' 
Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } 
load 'config/deploy' # remove this line to skip loading any of the default tasks 
+0

У вас есть ваш deploy.rb по правильному пути? (config/deploy.rb) – usha

+0

Да, правильно ли он автогенерируется с помощью команды capify – overflow

+0

Можете ли вы разместить содержимое своего «Capfile», пожалуйста? – GladstoneKeep

ответ

5

Если вы используете RVM> = 1.11.3, вы должны добавить rvm-capistrano камень в ваш Gemfile, а затем bundle install.

0

Это должно быть

cap deploy:setup 

не

cap:deploy:setup 
+0

Извините, что это ошибка при вводе текста – overflow

0

В строке 1 вашего capfile, вместо

load 'deploy' 

использование

load 'deploy' if respond_to?(:namespace) 
Смежные вопросы