Add restart functionality to proxy deployment

This commit is contained in:
Andras Bacsai
2024-01-18 12:14:11 +01:00
parent 4631c73809
commit 68fe886fb0
2 changed files with 28 additions and 0 deletions

View File

@@ -49,6 +49,14 @@ class Deploy extends Component
{
$this->server->refresh();
}
public function restart() {
try {
$this->stop();
$this->dispatch('checkProxy');
} catch (\Throwable $e) {
return handleError($e, $this);
}
}
public function checkProxy()
{
try {