當我嘗試使用Solr重新索引,我得到這個錯誤Ruby on Rails的Solr的重新索引錯誤
DEPRECATION WARNING: Sprockets method `register_engine` is deprecated.
Please register a mime type using `register_mime_type` then
use `register_compressor` or `register_transformer`.
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
(called from block in <class:Railtie> at /home/frcake/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/less-rails-2.7.1/lib/less/rails/railtie.rb:15)
DEPRECATION WARNING: You are using the a deprecated processor interface Less::Rails::ImportProcessor.
Please update your processor interface:
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
(called from block in <class:Railtie> at /home/frcake/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/less-rails-2.7.1/lib/less/rails/railtie.rb:20)
rake aborted!
NameError: uninitialized constant Sprockets::Helpers
/home/frcake/workspace/Site/brokerv1/brokr/app/uploader/image_uploader.rb:12:in `<class:ImageUploader>'
/home/frcake/workspace/Site/brokerv1/brokr/app/uploader/image_uploader.rb:3:in `<top (required)>'
/home/frcake/.rbenv/versions/2.2.4/bin/bundle:23:in `load'
/home/frcake/.rbenv/versions/2.2.4/bin/bundle:23:in `<main>'
Tasks: TOP => sunspot:solr:reindex => sunspot:reindex
(See full trace by running task with --trace)
- 我試圖與束EXEC耙,或直耙做
- 我刪除了Solr的文件並重新啓動
- 我刪除了XML文件,並重新啓動
我想我差不多已經盡了一切與無濟於事...
有什麼建議嗎?
Ow謝謝你試試! – frcake
@ frcake等你確認它正在工作 –
太棒了! ,我添加了較少的版本,它工作的很棒!謝謝噸! – frcake