Update app/Livewire/Project/Application/Heading.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
18a14037c7
commit
cefb425492
1 changed files with 12 additions and 1 deletions
|
|
@ -94,8 +94,19 @@ public function deploy(bool $force_rebuild = false)
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$this->setDeploymentUuid();
|
||||||
|
$result = queue_application_deployment(
|
||||||
|
application: $this->application,
|
||||||
|
deployment_uuid: $this->deploymentUuid,
|
||||||
|
force_rebuild: $force_rebuild,
|
||||||
|
);
|
||||||
|
if ($result['status'] === 'skipped') {
|
||||||
|
$this->dispatch('success', 'Deployment skipped', $result['message']);
|
||||||
|
|
||||||
// Reset restart count on deployment
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset restart count on successful deployment
|
||||||
$this->application->update([
|
$this->application->update([
|
||||||
'restart_count' => 0,
|
'restart_count' => 0,
|
||||||
'last_restart_at' => null,
|
'last_restart_at' => null,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue