Opsworks shoryuken cookbook for Ubuntu and Rails or non-rails shoryuken deploys
-
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 shoryuken uses the new code checked out.
-
Configure your shoryuken custom JSON to specify shoryuken should be deployed with this app:
Currently supported options for the shoryuken deploy recipe are:
- start_command
The command to start shoryuken. This will run relative to the root of the current release path.
Defaults to:
bundle exec shoryuken -R -C config/shoryuken.yml 2>&1 >> log/shoryuken.log
Here is an example Custom JSON which overrides overrides the start_command to not load the Rails application and read workers from a boot.rb file:
{
"deploy": {
"YOURAPPNAME": {
"shoryuken": {
"start_command": "bundle exec shoryuken -C config/shoryuken.yml -r ./config/boot.rb 2>&1 >> log/shoryuken.log"
}
}
}
}
Here is the minimum deploy config required:
{
"deploy": {
"YOURAPPNAME": {
"shoryuken": {}
}
}
}
All Opsworks environment_variables defined within your application will be exposed to the shoryuken process via the upstart script.