Capistrano::Racecar
Sidekiq integration for Capistrano
Installation
gem 'capistrano-racecar', group: :development
And then execute:
$ bundle
Usage
# Capfile
require 'capistrano/racecar'
install_plugin Capistrano::Racecar
Configurable options, shown here with defaults:
set_if_empty :racecar_task_path, 'config/racecar_task.yml'
set_if_empty :racecar_role, :app
set_if_empty :racecar_user, :system
set_if_empty :racecar_ctl, 'bundle exec racecarctl'
set_if_empty :racecar_pid_path, "#{fetch(:deploy_to)}/shared/tmp/pids"
Bundler
If you'd like to prepend bundle exec
to your racecar calls, modify the SSHKit command maps
in your deploy.rb file:
SSHKit.config.command_map[:sidekiq] = "bundle exec sidekiq"
SSHKit.config.command_map[:sidekiqctl] = "bundle exec sidekiqctl"
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