Last Updated: February 25, 2016
·
728
· jcuervo

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'