arielpts / opsworks-sidekiq

Opsworks sidekiq cookbook for Ubuntu and Rails or non-rails sidekiq deploys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

opsworks-sidekiq

Opsworks sidekiq cookbook for Ubuntu and Rails or non-rails sidekiq deploys

Installation instructions

  1. Make sure you have Redis installed. This cookbook seems decent: https://github.com/brianbianco/redisio

  2. Add this cookbook to your list of Custom Cookbooks

  3. Add the deploy recipe in this cookbook to your Application's Deploy custom recipe. This should be place AFTER your application is deployed to ensure Sidekiq uses the new code checked out.

  4. Configure your sidekiq custom JSON to specify Sidekiq should be deployed with this app:

Currently supported options for Sidekiq are:

  • rails_env: Defaults to production
  • require: Defaults to the deploy[:deploy_to]/current directory. Paths should be relative to the 'current' deploy directory.

Here is an example Custom JSON:

{
  "deploy": {
    "YOURAPPNAME": {
      "sidekiq": {
        "rails_env": "production",
        "require": "config/boot.rb"
      }
    }
  }
}

Or with just using the defaults:

{
  "deploy": {
    "YOURAPPNAME": {
      "sidekiq": {}
    }
  }
}

Assumptions

This recipe assumes you have a config/sidekiq.yml located in root of the App you are deploying.

About

Opsworks sidekiq cookbook for Ubuntu and Rails or non-rails sidekiq deploys

License:MIT License


Languages

Language:Ruby 50.8%Language:HTML 49.2%