diff --git a/app/Actions/Server/UpdateCoolify.php b/app/Actions/Server/UpdateCoolify.php index 0e97d2aed..a945670d4 100644 --- a/app/Actions/Server/UpdateCoolify.php +++ b/app/Actions/Server/UpdateCoolify.php @@ -25,7 +25,7 @@ public function handle($manual_update = false) if (! $this->server) { return; } - CleanupDocker::run($this->server, false); + CleanupDocker::dispatch($this->server, false)->onQueue('high'); $this->latestVersion = get_latest_version_of_coolify(); $this->currentVersion = config('version'); if (! $manual_update) { @@ -48,6 +48,7 @@ public function handle($manual_update = false) private function update() { if (isDev()) { + ray('Running in dev mode'); remote_process([ 'sleep 10', ], $this->server); diff --git a/resources/views/livewire/upgrade.blade.php b/resources/views/livewire/upgrade.blade.php index d10ef8b45..59b3d718d 100644 --- a/resources/views/livewire/upgrade.blade.php +++ b/resources/views/livewire/upgrade.blade.php @@ -58,25 +58,26 @@ class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5

Are you sure you would like to upgrade your instance to {{ $latestVersion }}?


-

You can review the changelogs You can review the changelogs here.


If something goes wrong and you cannot upgrade your instance, You can check the following - guide on what to do.

@if ($showProgress)
-

Progress

+

Progress

@endif
-
+
@if (!$showProgress) Cancel +
Continue @endif @@ -98,6 +99,10 @@ class="w-24 dark:bg-coolgray-200 dark:hover:bg-coolgray-300">Cancel this.$wire.$call('upgrade') this.upgrade(); this.$wire.showProgress = true; + window.addEventListener('beforeunload', (event) => { + event.preventDefault(); + event.returnValue = ''; + }); }, revive() { if (checkHealthInterval) return true;