Install with composer
composer require deployer/recipes --dev
Add to your deploy.php
require 'recipe/rollbar.php';
rollbar_token
– access token to rollbar apirollbar_comment
– comment about deploy, default toset('rollbar_comment', '_{{user}}_ deploying `{{branch}}` to *{{target}}*');
rollbar_username
– rollbar user name
rollbar:notify
– send message to rollbar
Since you should only notify Rollbar channel of a successful deployment, the rollbar:notify
task should be executed right at the end.
after('deploy', 'rollbar:notify');