Sidekiq integration for Capistrano.
Add this line to your application's Gemfile:
gem 'capistrano-sidekiq-sic'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-sidekiq-sic
Require in Capfile
to use the default task:
require 'capistrano/sidekiq'
Configurable options, shown here with defaults:
set :sidekiq_roles, :app
set :sidekiq_env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) }
set :sidekiq_user, -> { fetch(:app_user, nil) }
set :sidekiq_log, -> { File.join(shared_path, 'log', 'sidekiq.log') }
set :sidekiq_pid, -> { File.join(shared_path, 'tmp', 'pids', 'sidekiq.pid') }
set :sidekiq_timeout, -> { 10 }
Bug reports and pull requests are welcome on GitHub at https://github.com/SICSoftwareGmbH/capistrano-sidekiq.
The gem is available as open source under the terms of the MIT License.