diff --git a/app/Actions/Proxy/CheckProxy.php b/app/Actions/Proxy/CheckProxy.php index 79989f05b..b1fb6a3cb 100644 --- a/app/Actions/Proxy/CheckProxy.php +++ b/app/Actions/Proxy/CheckProxy.php @@ -22,7 +22,6 @@ class CheckProxy } $proxyType = $server->proxyType(); if (is_null($proxyType) || $proxyType === 'NONE' || $server->proxy->force_stop) { - ray('Not starting proxy'); return false; } ['uptime' => $uptime, 'error' => $error] = $server->validateConnection(); diff --git a/app/Actions/Proxy/StartProxy.php b/app/Actions/Proxy/StartProxy.php index 3e41708d4..92a5e5b56 100644 --- a/app/Actions/Proxy/StartProxy.php +++ b/app/Actions/Proxy/StartProxy.php @@ -15,7 +15,7 @@ class StartProxy { try { $proxyType = $server->proxyType(); - if (is_null($proxyType) || $proxyType === 'NONE' || $server->proxy->force_stop) { + if (is_null($proxyType) || $proxyType === 'NONE' || $server->proxy->force_stop || $server->isBuildServer()) { return 'OK'; } $commands = collect([]); diff --git a/app/Livewire/Server/Form.php b/app/Livewire/Server/Form.php index c1dcd34ce..44f016aca 100644 --- a/app/Livewire/Server/Form.php +++ b/app/Livewire/Server/Form.php @@ -58,6 +58,12 @@ class Form extends Component $this->server->refresh(); $this->server->settings->refresh(); } + public function updatedServerSettingsIsBuildServer() + { + $this->dispatch('serverInstalled'); + $this->dispatch('serverRefresh'); + $this->dispatch('proxyStatusUpdated'); + } public function instantSave() { try { diff --git a/app/Livewire/Server/ValidateAndInstall.php b/app/Livewire/Server/ValidateAndInstall.php index b148fe2c4..aef7b800c 100644 --- a/app/Livewire/Server/ValidateAndInstall.php +++ b/app/Livewire/Server/ValidateAndInstall.php @@ -129,6 +129,9 @@ class ValidateAndInstall extends Component } } + if ($this->server->isBuildServer()) { + return; + } $this->dispatch('startProxy'); } public function render() diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.php index 5f2975286..6efe08c52 100644 --- a/resources/views/livewire/server/form.blade.php +++ b/resources/views/livewire/server/form.blade.php @@ -72,7 +72,7 @@