No commit activity in last 3 years
No release in over 3 years
Capistrano task for sunspot
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Capistrano::Sunspot

Sunspot specific tasks for Capistrano v3:

  • cap sunspot:start
  • cap sunspot:stop
  • cap sunspot:reindex
  • cap sunspot:restart

Installation

Add these lines to your application's Gemfile:

group :development do
  gem 'capistrano'
  gem 'capistrano-sunspot'
end

Run the following command to install the gems:

bundle install

Then run the generator to create a basic set of configuration files:

bundle exec cap install

Usage

Require capistrano sunspot :

# Capfile
require 'capistrano/capistrano-sunspot'

Please note that any requires should be placed in Capfile, not in config/deploy.rb.

You can tweak some Rails-specific options in config/deploy.rb:

### Symlinks

You'll probably want to symlink sunspot shared files and directories like `solr`.
Make sure you enable it by setting `linked_dirs` and `linked_files` options:

```ruby
# deploy.rb
set :linked_dirs, fetch(:linked_dirs, []).push('solr')

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request