From a85066c644830587fa93da7e5d4d8aa756aeb8b0 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 12 Jul 2024 15:05:12 +0200 Subject: [PATCH] fix: disable sentinel until a few bugs are fixed --- app/Console/Commands/Init.php | 11 +++++++++++ resources/views/livewire/server/form.blade.php | 14 ++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index 7949b2457..4a276cfc4 100644 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -2,6 +2,7 @@ namespace App\Console\Commands; +use App\Actions\Server\StopSentinel; use App\Enums\ApplicationDeploymentStatus; use App\Jobs\CleanupHelperContainersJob; use App\Models\ApplicationDeploymentQueue; @@ -23,6 +24,16 @@ public function handle() { $this->alive(); get_public_ips(); + if (version_compare('4.0.0-beta.312', config('version'), '<=')) { + $servers = Server::all(); + foreach ($servers as $server) { + $server->settings->update(['is_metrics_enabled' => false]); + if ($server->isFunctional()) { + StopSentinel::dispatch($server); + } + } + } + $full_cleanup = $this->option('full-cleanup'); $cleanup_deployments = $this->option('cleanup-deployments'); diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.php index d8144e931..5cba620dd 100644 --- a/resources/views/livewire/server/form.blade.php +++ b/resources/views/livewire/server/form.blade.php @@ -146,15 +146,13 @@ class="w-full mt-8 mb-4 font-bold box-without-bg bg-coollabs hover:bg-coollabs-1

Sentinel

- @if ($server->isSentinelEnabled()) - Restart - @endif + {{-- @if ($server->isSentinelEnabled()) --}} + {{-- Restart --}} + {{-- @endif --}}
-
+
Metrics are disabled until a few bugs are fixed.
+ {{--
- {{-- - Check Port for Server API --}}
@@ -166,7 +164,7 @@ class="w-full mt-8 mb-4 font-bold box-without-bg bg-coollabs hover:bg-coollabs-1
-
+
--}} @endif