【问题标题】:Sunspor Solr in productionSunspor Solr 在生产中
【发布时间】:2013-05-07 04:49:21
【问题描述】:

我看到了这个问题Setup sunspot solr with rails in production environment

但我看到了我的输出:

bundle exec sunspot-solr start

...sunspot_solr is not part of the bundle. Add it to Gemfile.

我有 sunspot_solr 在开发组下,我想我不应该改变它。

捆绑器输出

Using rsolr (1.0.8) 
...
Using sunspot (1.3.3) 
Using sunspot_rails (1.3.3) 

耙子输出

rake sunspot:solr:start RAILS_ENV=production

Note: This task has been moved to the sunspot_solr gem. To install, start and
stop a local Solr instance, please add sunspot_solr to your Gemfile:

group :development do
  gem 'sunspot_solr'
end

任何建议,谢谢。

【问题讨论】:

    标签: ruby-on-rails sunspot sunspot-rails sunspot-solr


    【解决方案1】:

    您可以尝试将宝石放在开发组之外吗?

    我在开发组之外有以下宝石:

    gem 'sunspot_rails'
    gem 'sunspot_solr'
    

    【讨论】:

    • 谢谢,我对其他问题和答案有偏见。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多