From 83becdb19d465563fffea01a070660784f35531c Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 16 Feb 2024 08:34:30 +0100 Subject: [PATCH] fix: only show redeployment required if status is not exited --- app/Models/Application.php | 3 +++ config/sentry.php | 2 +- config/version.php | 2 +- resources/views/livewire/project/application/general.blade.php | 2 +- versions.json | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/Models/Application.php b/app/Models/Application.php index df1fb8038..a12be33fd 100644 --- a/app/Models/Application.php +++ b/app/Models/Application.php @@ -212,6 +212,9 @@ public function portsMappingsArray(): Attribute ); } + public function isExited() { + return (bool) str($this->status)->startsWith('exited'); + } public function realStatus() { return $this->getRawOriginal('status'); diff --git a/config/sentry.php b/config/sentry.php index 80b7ffe7f..bc708e23e 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ // 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.219', + 'release' => '4.0.0-beta.220', // 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 81f48a3c5..97edca729 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@ Save - @if ($isConfigurationChanged && !is_null($application->config_hash)) + @if ($isConfigurationChanged && !is_null($application->config_hash) && !$application->isExited())
diff --git a/versions.json b/versions.json index da42b0e85..86af46b94 100644 --- a/versions.json +++ b/versions.json @@ -4,7 +4,7 @@ "version": "3.12.36" }, "v4": { - "version": "4.0.0-beta.219" + "version": "4.0.0-beta.220" } } }