Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ through their Capistrano counterparts, ex: `bundle exec cap solid_queue:restart`

## Usage

The plugin has registered a Capistrano `hook` to run `bundle exec cap solid_queue:restart` after deploy.
The plugin registers these Capistrano hooks:

- after `deploy:starting`, `solid_queue:quiet` sends `SIGTERM` to the service, so Solid Queue starts a graceful shutdown;
- after `deploy:updated`, `solid_queue:stop` stops the service;
- after `deploy:published`, `solid_queue:start` starts the service on the new release;
- after `deploy:failed`, `solid_queue:restart` restarts the service.

See [`#register_hooks`](lib/capistrano/solid_queue.rb)

## Development
Expand Down
Loading