From ea5b33b9232799f609b81f7dc9ef9ea3a29d312c Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 19 Aug 2025 14:22:48 +0200 Subject: [PATCH] fix(init): improve error handling for deployment and template pulling processes --- app/Console/Commands/Init.php | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index 3d61a0935..b85829256 100644 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -68,23 +68,43 @@ class Init extends Command if (isCloud()) { try { - $this->cleanupUnnecessaryDynamicProxyConfiguration(); + $this->cleanupInProgressApplicationDeployments(); + } catch (\Throwable $e) { + echo "Could not cleanup inprogress deployments: {$e->getMessage()}\n"; + } + + try { $this->pullTemplatesFromCDN(); - $this->pullChangelogFromGitHub(); } catch (\Throwable $e) { echo "Could not pull templates from CDN: {$e->getMessage()}\n"; } + try { + $this->pullChangelogFromGitHub(); + } catch (\Throwable $e) { + echo "Could not changelogs from github: {$e->getMessage()}\n"; + } + return; } try { $this->cleanupInProgressApplicationDeployments(); + } catch (\Throwable $e) { + echo "Could not cleanup inprogress deployments: {$e->getMessage()}\n"; + } + + try { $this->pullTemplatesFromCDN(); - $this->pullChangelogFromGitHub(); } catch (\Throwable $e) { echo "Could not pull templates from CDN: {$e->getMessage()}\n"; } + + try { + $this->pullChangelogFromGitHub(); + } catch (\Throwable $e) { + echo "Could not changelogs from github: {$e->getMessage()}\n"; + } try { $localhost = $this->servers->where('id', 0)->first(); $localhost->setupDynamicProxyConfiguration();