Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

dcmp/capistrano-sunspot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sunspot specific tasks for Capistrano v3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Ruby 100.0%