From 722fbe1861f8ba4cc5dee2322a34bc54875da096 Mon Sep 17 00:00:00 2001 From: Aaron Gerig Date: Tue, 8 Feb 2022 11:15:43 +0100 Subject: [PATCH] refactor: change structure of deployer recipe --- deployer/monitor.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/deployer/monitor.php b/deployer/monitor.php index b7290f0..befef4e 100644 --- a/deployer/monitor.php +++ b/deployer/monitor.php @@ -17,8 +17,13 @@ namespace Deployer; +desc('Runs the health report'); task('pimcore:monitor:health-report', static function () { - run("cd {{release_path}} && {{bin/console}} pimcore:monitor:health-report"); + run('cd {{release_path}} && {{bin/console}} pimcore:monitor:health-report'); }); -after('deploy:success', 'pimcore:monitor:health-report'); +task('pimcore:monitor', [ + 'pimcore:monitor:health-report', +]); + +after('deploy:success', 'pimcore:monitor');