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 require
s 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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request