mcxqzw
Last Updated: February 25, 2016
·
367
· jcuervo
537831 10202728524317365 2054249624 n

Sunspot, Solr and Rails 3

Updated my old Rails project to Rails 3.2.10 (deployed on Heroku using WebSolr) then I suddenly got some rake issues starting Solr locally (development mode). Went around Google for some time and ended up with this setup:

Gemfile
gem 'sunspotrails', '~> 1.3.0'
group :development do
gem 'sunspot
solr', :git => 'git://github.com/sunspot/sunspot.git'
end

And added the line below on the Rakefile
require 'sunspot/rails/tasks'

Say Thanks
Respond