docs/contrib/rabbit.md
require 'contrib/rabbit.php';
deploy.php
require 'recipe/rabbit.php';
deploy.php
set('rabbit', [
'host' => 'localhost',
'port' => '5672',
'username' => 'guest',
'password' => 'guest',
'channel' => 'notify-channel',
'vhost' => '/my-app'
]);
Since you should only notify RabbitMQ channel of a successful deployment, the deploy:rabbit task should be executed right at the end.
deploy.php
before('deploy:end', 'deploy:rabbit');
Notifies RabbitMQ channel about deployment.