자산을 사전 컴파일하려고하는데 오류가 발생하면 시도하지만 오류가 아닌 다른 것을 알려주지 않으므로 어디에서 발생했는지 전혀 알지 못합니다. 또는 그것을 찾는 방법. 난 아무것도 잘라 적이 없다 rake assets:precompile --trace
을 실행하고 전체 출력 다음과 같은 출력레이크 에셋 : 유용한 오류없이 프리 컴파일 실패
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/home/nginx/.rvm/rubies/ruby-1.9.3-p327/bin/ruby /home/nginx/.rvm/gems/ruby-1.9.3-p327/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
undefined method `[]' for nil:NilClass
Command failed with status (1): [/home/nginx/.rvm/rubies/ruby-1.9.3-p327/bi...]
을 얻고있다. 보시다시피, 나는 오류가 있지만 위치 나 다른 것을 얻지 못하고 있습니다.
쉽게 추적 할 수있는 방법이 있습니까?
': assets' 그룹의 Gemfile에있는 보석은 무엇입니까? 애셋을 컴파일 할 때나 애플리케이션을 실행할 때만이 오류가 발생합니까? – alf
로컬로 잘 실행됩니다 (개발 환경에서). 자산 아래 나는 단지 'sass-rails','coffee-rails','uglifier'와'angularjs-rails'을 덧붙여서 – PaReeOhNos