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:

* environment: 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:

```json
{
  "deploy": {
    "YOURAPPNAME": {
      "sidekiq": {
        "environment": "production",
        "require": "config/boot.rb"
      }
    }
  }
}
```

Or with just using the defaults:
```json
{
  "deploy": {
    "YOURAPPNAME": {
      "sidekiq": {}
    }
  }
}
```



## Assumptions

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

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:

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

Or with just using the defaults:
```json
{
  "deploy": {
    "YOURAPPNAME": {
      "sidekiq": {}
    }
  }
}
```



## Assumptions

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

Fix documentation of environment attribute
Fix documentation of environment attribute