https://github.com/navinspm/capistrano-sunspot
Sunspot specific tasks for Capistrano v3
https://github.com/navinspm/capistrano-sunspot
capistrano hacktoberfest ruby
Last synced: 5 months ago
JSON representation
Sunspot specific tasks for Capistrano v3
- Host: GitHub
- URL: https://github.com/navinspm/capistrano-sunspot
- Owner: navinspm
- License: mit
- Created: 2017-02-10T04:56:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-04T11:28:41.000Z (over 4 years ago)
- Last Synced: 2024-10-29T02:39:04.337Z (6 months ago)
- Topics: capistrano, hacktoberfest, ruby
- Language: Ruby
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this 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:
```ruby
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 :
```ruby
# 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`:
```ruby
### 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