Sha256: f6ab496ff7b88b84c0f42192a80e5f4f62a6b72f810c2d4a349524c395532f49

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

# Capistrano::Sidekiq

Sidekiq integration for Capistrano

## Installation

Add this line to your application's Gemfile:

    gem 'capistrano-sidekiq' , github: 'seuros/capistrano-sidekiq'

or:

    gem 'capistrano-sidekiq'

And then execute:

    $ bundle


## Usage
```ruby
    # Capfile

    require 'capistrano/sidekiq'
```


Configurable options, shown here with defaults:

```ruby
    :sidekiq_default_hooks =>  true
    :sidekiq_pid =>  File.join(shared_path, 'tmp', 'pids', 'sidekiq.pid')
    :sidekiq_env =>  fetch(:rack_env, fetch(:rails_env, fetch(:stage)))
    :sidekiq_log =>  File.join(shared_path, 'log', 'sidekiq.log')
    :sidekiq_options =>  "-e #{fetch(:sidekiq_env)} -L #{fetch(:sidekiq_log)}"
    :sidekiq_timeout =>  10
    :sidekiq_role =>  :app
    :sidekiq_processes =>  1
    :sidekiq_cmd => "#{fetch(:bundle_cmd, "bundle")} exec sidekiq"  # Only for capistrano2.5
    :sidekiqctl_cmd => "#{fetch(:bundle_cmd, "bundle")} exec sidekiqctl" # Only for capistrano2.5
```


## 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-sidekiq-0.0.2 README.md