Skip to content

Commit

Permalink
Add another small note about unicorn:duplicate.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfsekaran committed Sep 10, 2013
1 parent ed4fc26 commit 4471dc6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ require 'capistrano-unicorn'
Add unicorn restart task hook:

```ruby
after 'deploy:restart', 'unicorn:reload' # app IS NOT preloaded
after 'deploy:restart', 'unicorn:restart' # app preloaded
after 'deploy:restart', 'unicorn:reload' # app IS NOT preloaded
after 'deploy:restart', 'unicorn:restart' # app preloaded
after 'deploy:restart', 'unicorn:duplicate' # before_fork hook implemented (zero downtime deployments)
```

Create a new configuration file `config/unicorn.rb` or `config/unicorn/STAGE.rb`,
where stage is your deployment environment.

Example config - [examples/rails3.rb](https://github.com/sosedoff/capistrano-unicorn/blob/master/examples/rails3.rb).
Please refer to unicorn documentation for more examples and configuration options.
Please refer to Unicorn documentation for more examples and configuration options.

### Deploy

Expand Down

0 comments on commit 4471dc6

Please sign in to comment.