Question

I saw this question Setup sunspot solr with rails in production environment.

But I see my output:

bundle exec sunspot-solr start

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

I have sunspot_solr under development group, and I suppose I should not change that.

Bundler output

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

Rake output

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

Any advice, thanks.

Was it helpful?

Solution

Can you try putting the gems outside the development group?

I have the following gems outside the development group:

gem 'sunspot_rails'
gem 'sunspot_solr'
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top