3

Linux 서버에 Capistrano와 함께 Ruby 1.9.3 응용 프로그램을 배포하고 있습니다. 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 (애플 리케이션 디렉토리 내부)를 실행하면 같은 오류가 발생합니다.

그럼 어떻게해야합니까?

답변

관련 문제