Install with composer
composer require deployer/recipes --dev
Add to your deploy.php
require 'recipe/newrelic.php';
newrelic_app_id
– newrelic's app idnewrelic_api_key
– newrelic's api keynewrelic_description
– message to send
newrelic:notify
– notifies New Relic of a new deployment
Since you should only notify New Relic of a successfull deployment, the newrelic:notify
task should be executed right at the end.
after('deploy', 'newrelic:notify');