opsworks-sidekiq
Opsworks sidekiq cookbook for Ubuntu and Rails or non-rails sidekiq deploys
Installation instructions
-
Make sure you have Redis installed. This cookbook seems decent: https://github.com/brianbianco/redisio
-
Add this cookbook to your list of Custom Cookbooks
-
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.
-
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.