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 @@ class Init extends Command { $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/config/sentry.php b/config/sentry.php index f08d73156..09cd71fc3 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ return [ // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) - 'release' => '4.0.0-beta.311', + 'release' => '4.0.0-beta.312', // When left empty or `null` the Laravel environment will be used 'environment' => config('app.env'), diff --git a/config/version.php b/config/version.php index 7f08a2b47..db7527f17 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@

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 @@
-
+
--}} @endif diff --git a/versions.json b/versions.json index ca1c6fb50..4cc8314de 100644 --- a/versions.json +++ b/versions.json @@ -1,7 +1,7 @@ { "coolify": { "v4": { - "version": "4.0.0-beta.311" + "version": "4.0.0-beta.312" } } }