sidekiq-rails-cookbook
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
definitions
recipes
templates/default
.gitignore
Berksfile
Gemfile
LICENSE
README.md
Thorfile
Vagrantfile
chefignore
metadata.rb

README.md

sidekiq-rails cookbook

Configures sidekiq worker for your app managed by runit.

Requirements

Usage

Call it from your recipe or provider that setups your rails app

sidekiq_rails do
  service_name "sidekiq-rails-depot"
  user_name    "depot"
  app_dir      "/var/lib/depot/current"
  rails_env    "production"
end

Warning

  • This cookbook is starting the sidekiq process using su, not chpst
  • You should stop and start the worker process as part of your deploy procedure. For example by using sv stop /etc/sv/sidekiq-rails-depot/ & sv start /etc/sv/sidekiq-rails-depot/. The permission allow app user to stop and start this service. No need to use root user or sudo for that.

Author

Arkency (dev@arkency.com)

License

Apache 2.0