Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Blumenthal committed Dec 7, 2014
1 parent 2f82b66 commit 97af227
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,37 @@ This is a very simple cookbook to deploy a pool of resque workers directly in Am

In your custom layer, you must add this recipes to each stage

**Configure**
**Setup**

rails::configure
opsworks-resque::configure
opsworks-resque::setup

**Deploy**

deploy::rails
opsworks-resque::restart

**Shutdown**
**Undeploy**

opsworks-resque::stop

# Attributes

It expects an array with the queues of workers to run, for example
```ruby
default['resque']['path'] = "/srv/www/mailee_staging/current"
default['resque']['workers'] = {"*" => 2, "images" => 1} # 2 workers for queue * and 1 worker for queue images
default['resque']['rails_env'] = "production"

```json
"resque": {
"app-name": {
"workers": {
"*": 1
}
}
}
```

# Recipes

**opsworks-resque::configure** - initial setup
**opsworks-resque::setup** - initial setup
**opsworks-resque::restart** - restart the workers (after deploy)
**opsworks-resque::stop** - stop the workers (shutdown)

# Author

Author:: Pedro Axelrud (<pedroaxl@gmail.com>)
Author:: Pedro Axelrud (<pedroaxl@gmail.com>)

0 comments on commit 97af227

Please sign in to comment.