diff --git a/contrib/supervisord-monitor.php b/contrib/supervisord-monitor.php index be2291994..7fa80c1b8 100644 --- a/contrib/supervisord-monitor.php +++ b/contrib/supervisord-monitor.php @@ -66,11 +66,11 @@ host('staging.myproject.com') ->set('branch', 'develop') - ->set('labels' => ['stage' => 'staging']); + ->set('labels', ['stage' => 'staging']); host('myproject.com') ->set('branch', 'main') - ->set('labels' => ['stage' => 'production']); + ->set('labels', ['stage' => 'production']); // Tasks task('build', function () { @@ -80,7 +80,7 @@ task('deploy', [ 'build', 'supervisord', -]) +]); task('supervisord', ['supervisord-monitor:restart']) ->select('stage=production'); diff --git a/docs/contrib/supervisord-monitor.md b/docs/contrib/supervisord-monitor.md index 263798f5f..718c5bfdf 100644 --- a/docs/contrib/supervisord-monitor.md +++ b/docs/contrib/supervisord-monitor.md @@ -78,11 +78,11 @@ set('supervisord', [ host('staging.myproject.com') ->set('branch', 'develop') - ->set('labels' => ['stage' => 'staging']); + ->set('labels', ['stage' => 'staging']); host('myproject.com') ->set('branch', 'main') - ->set('labels' => ['stage' => 'production']); + ->set('labels', ['stage' => 'production']); Tasks task('build', function () { @@ -92,7 +92,7 @@ task('build', function () { task('deploy', [ 'build', 'supervisord', -]) +]); task('supervisord', ['supervisord-monitor:restart']) ->select('stage=production');