Skip to content

Commit

Permalink
More documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
wfarr committed Mar 25, 2011
1 parent 962f097 commit f44a05d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 10 deletions.
19 changes: 10 additions & 9 deletions README.rdoc
Expand Up @@ -46,21 +46,22 @@ Modify the configuration file (config/god/resque.god) as needed.
You'll also want to add the `:resque` role to all servers using it.
For example:

# config/deploy/production.rb
server 'worker1.myapp.com', :app, :resque
# config/deploy/production.rb
server 'worker1.myapp.com', :app, :resque

If you're using Resque with God this way, you also have access to
some Capistrano tasks:

cap god:resque:restart # restart resque
cap god:resque:start # start resque
cap god:resque:stop # stop resque
cap god:resque:status # show status of resque
cap god:resque:restart # restart resque
cap god:resque:start # start resque
cap god:resque:stop # stop resque
cap god:resque:status # show status of resque

We also recommend having Moonshine automatically restart Resque on deploys:
We also strongly recommend having Moonshine automatically restart Resque on
deploys:

# config/deploy.rb
before 'god:restart', 'god:resque:stop'
# config/deploy.rb
before 'god:restart', 'god:resque:stop'

This is a great way to handle automatically reloading new app code into your
workers on deploy, as well as increasing or decreasing the number of
Expand Down
Expand Up @@ -6,11 +6,25 @@ def manifest

intro = <<-INTRO
- To monitor Resque with God, install moonshine_god.
script/plugin install git://github.com/railsmachine/moonshine_god.git
You'll also want to add the `:resque` role to all servers using it.
For example:
# config/deploy/production.rb
server 'worker1.myapp.com', :app, :resque
We also strongly recommend having Moonshine automatically restart Resque on
deploys:
# config/deploy.rb
before 'god:restart', 'god:resque:stop'
This is a great way to handle automatically reloading new app code into your
workers on deploy, as well as increasing or decreasing the number of
Resque workers.
INTRO

Expand Down
Expand Up @@ -16,6 +16,22 @@ def manifest
script/plugin install git://github.com/railsmachine/moonshine_god.git
You'll also want to add the `:resque` role to all servers using it.
For example:
# config/deploy/production.rb
server 'worker1.myapp.com', :app, :resque
We also strongly recommend having Moonshine automatically restart Resque on
deploys:
# config/deploy.rb
before 'god:restart', 'god:resque:stop'
This is a great way to handle automatically reloading new app code into your
workers on deploy, as well as increasing or decreasing the number of
Resque workers.
INTRO

puts intro
Expand Down

0 comments on commit f44a05d

Please sign in to comment.