저는 Enki 블로깅 젬을 사용하고 있습니다. 로컬에서 작동하여 heroku (전에는 문제가 없었 음)에 밀어 넣으려고했습니다. 내가 미리 컴파일 시도하고 나는 문제가 나는 uglifier가 어디 있는지 모르겠지만, 전에 Heroku가에 엔키 블로그를 밀고 있었다 적이이rake assets : 사전 컴파일 중단, heroku에 푸시 할 수 없습니다.
/Users/me/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby /Users/me/.rvm/gems/[email protected]/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
cannot load such file -- uglifier
(in /Users/me/Sites/bayani/app/assets/javascripts/admin.js)
를했다, 나는 다른 엔키 블로그에서 그것을 보았던 기억합니다 I 내가 왜 그렇게 문제를 일으키는 지 모르겠다. 내가 Heroku가로 밀어 그것이 제공된 링크에서 문제 해결 문서를 읽고 나면뿐만 아니라
Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
no such file to load -- uglifier
(in /tmp/build_5tbsi7k7ddhk/app/assets/javascripts/admin.js)
Tasks: TOP => assets:precompile:primary
(See full trace by running task with --trace)
Precompiling assets failed, enabling runtime asset compilation
Injecting rails31_enable_runtime_asset_compilation
Please see this article for troubleshooting help:
http://devcenter.heroku.com/articles/rails31_heroku_cedar#troubleshooting
사전 컴파일을 중단
, 나는 application.rb
config.assets.initialize_on_precompile = false
하지만 난에 넣고 여전히 동일한 문제가 있습니다.
이것은 admin.js입니다. 단지 매니페스트 파일 일뿐입니다. 이것은 enki에 대한 링크입니다 https://github.com/xaviershay/enki
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
//
//= require jquery
//= require jquery_ujs
//= require jquery.livequery
//= require jquery.form
//= require jquery.easing.1.3
//= require humanmsg
//= require_tree ./admin
질문에 쓰여진 오류 메시지는 'uglifier' 보석이 Gemfile에 포함되어 있지 않은 문제를 지적하고 있습니다. 그래서 나는 Gemfile의 assets 그룹에'uglifier' 보석을 간단하게 요구해야했습니다. –