This commit is contained in:
Andras Bacsai 2024-05-30 19:45:36 +02:00
parent 30a9783348
commit cd58e0d01e
2 changed files with 1 additions and 4 deletions

View File

@ -54,7 +54,7 @@ private function update()
{
if (isDev()) {
instant_remote_process([
"sleep 10"
"sleep 1"
], $this->server);
return;
}

View File

@ -5,11 +5,9 @@
use App\Actions\Server\UpdateCoolify;
use Livewire\Component;
use DanHarrin\LivewireRateLimiting\WithRateLimiting;
class Upgrade extends Component
{
use WithRateLimiting;
public bool $showProgress = false;
public bool $updateInProgress = false;
public bool $isUpgradeAvailable = false;
@ -31,7 +29,6 @@ public function upgrade()
if ($this->updateInProgress) {
return;
}
$this->rateLimit(1, 60);
$this->updateInProgress = true;
UpdateCoolify::run(manual_update: true);
} catch (\Throwable $e) {