fix: autoupdater

This commit is contained in:
Andras Bacsai
2024-03-27 11:35:57 +01:00
parent 3d3d31ef29
commit 43fed96af1
4 changed files with 28 additions and 12 deletions

View File

@@ -37,8 +37,8 @@ class Upgrade extends Component
return;
}
$this->showProgress = true;
UpdateCoolify::run(true);
$this->dispatch('success', "Upgrading to {$this->latestVersion} version...");
UpdateCoolify::run(force: true, async: true);
$this->dispatch('success', "Updating Coolify to {$this->latestVersion} version...");
} catch (\Throwable $e) {
return handleError($e, $this);
}