Guard::Sunspot

Guard::Sunspot allows you to automatically start and stop your solr server.

Install

The simplest way to install Guard is to use Bundler. Please make sure to have Guard installed before continue.

Add Guard::Cucumber to your Gemfile:

group :development do
  gem 'guard-sunspot'
end

Add the default Guard::Cucumber template to your Guardfile by running:

$ guard init sunspot

Options

You can set RAILS_ENV by setting the :environment option.

guard 'sunspot', :environment => 'development' do
  watch('Gemfile.lock')
  watch('config/sunspot.yml')
end