From 96ea755a53bd78d279458064cccd683f20096468 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 24 Oct 2024 12:50:07 +0200 Subject: [PATCH] fix: Disable Sentinel temporarily for non-dev environments --- app/Actions/Server/StartSentinel.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Actions/Server/StartSentinel.php b/app/Actions/Server/StartSentinel.php index ed93b6c60..e2af0c3ba 100644 --- a/app/Actions/Server/StartSentinel.php +++ b/app/Actions/Server/StartSentinel.php @@ -9,10 +9,12 @@ class StartSentinel { use AsAction; - public function handle(Server $server, bool $restart = false) + public function handle(Server $server, bool $restart = false, bool $is_dev = false) { // TODO: Sentinel is not available in this version (soon). - return; + if (! $is_dev) { + return; + } $version = get_latest_sentinel_version(); if ($server->isSwarm() || $server->isBuildServer()) { return;