/capistrano-sidekiq

DEPRECATED - Sidekiq support for capistrano

Primary LanguageRubyMIT LicenseMIT

Gem Version Dependencies

Capistrano::Sidekiq

Sidekiq integration for Capistrano.

Installation

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

Usage

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 }

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/SICSoftwareGmbH/capistrano-sidekiq.

License

The gem is available as open source under the terms of the MIT License.