diff --git a/routes/webhooks.php b/routes/webhooks.php index 6a9de6403..c3c80dba3 100644 --- a/routes/webhooks.php +++ b/routes/webhooks.php @@ -119,6 +119,11 @@ return response('Nothing to do. No applications found.'); } foreach ($applications as $application) { + $isFunctional = $application->destination->server->isFunctional(); + if (!$isFunctional) { + ray('Server is not functional: ' . $application->destination->server->name); + continue; + } if ($x_github_event === 'push') { if ($application->isDeployable()) { ray('Deploying ' . $application->name . ' with branch ' . $branch);