Repository is archived
No commit activity in last 3 years
No release in over 3 years
Sidekiq integration for Capistrano
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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.