3

Linuxサーバーに私のRails 3.2.2、Ruby 1.9.3アプリをCapistranoと共に配備しています。 ruby-debug宝石が見つからなかったことを、Capistranoデプロイメント、アセットパイプライン、ルビーデバッグが見つかりません

* executing `deploy:assets:precompile' 
    * executing "cd /var/www/production/releases/20120418090209 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile" 
    servers: ["example.com"] 
    [example.com] executing command 
    [example.com] sh -c 'cd /var/www/production/releases/20120418090209 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile' 
** [out :: example.com] rake aborted! 
** [out :: example.com] cannot load such file -- ruby-debug 
** [out :: example.com] 
** [out :: example.com] (See full trace by running task with --trace) 
    command finished in 8962ms 
*** [deploy:update_code] rolling back 
    * executing "rm -rf /var/www/production/releases/20120418090209; true" 
    servers: ["example.com"] 
    [example.com] executing command 
    [example.com] sh -c 'rm -rf /var/www/production/releases/20120418090209; true' 
    command finished in 176ms 
failed: "sh -c 'cd /var/www/production/releases/20120418090209 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile'" on example.com 

それは言う:私はcap deployを実行しているとき、私はこのエラーを取得します。

:エラーが rake assets:precompileコマンドの後にスローされます

group :development, :test do 
    gem "steak" 
    gem "linecache19", :git => "git://github.com/mark-moseley/linecache", :require => "ruby-debug" 
    gem "ruby-debug-base19x", "~> 0.11.30.pre4" 
    gem "ruby-debug19" 
    gem "rails_best_practices" 
    gem "ruby_parser" 
    gem "reek" 
    gem "flog" 
    gem "jslint_on_rails", :git => "git://github.com/psionides/jslint_on_rails" 
    gem "jasmine-rails" 
end 

原因は、私はそれが何かカピストラーノと藤堂と私のCapfile内部load 'deploy/assets'電話を持っていると思う。しかし、ルビー・デバッグは、私のGemfileで生産グループ内ではありません

load 'deploy' if respond_to?(:namespace) # cap2 differentiator 
Dir['config/deploy/recipes/*.rb','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 
# Uncomment if you are using Rails' asset pipeline 
load 'deploy/assets' 

この行を削除すると、すべてがうまく配置されますが、アセットは本番環境では見つかりません。そして、もし私がbundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompileを直接(アプリケーションディレクトリ内の)サーバー上で実行すると、私は同じエラーが発生します。

どうすればよいですか?

答えて

関連する問題