An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: restart proxy does not work + status indicator on the UI
Andras Bacsaif134171855a5
diff --git a/app/Livewire/Server/Proxy/Deploy.php b/app/Livewire/Server/Proxy/Deploy.phpindex 965c51e2d8..2279951ee4 100644--- a/app/Livewire/Server/Proxy/Deploy.php+++ b/app/Livewire/Server/Proxy/Deploy.php@@ -50,7 +50,7 @@ class Deploy extends Componentpublic function proxyStarted(){CheckProxy::run($this->server, true);- $this->dispatch('success', 'Proxy started.');+ $this->dispatch('proxyStatusUpdated');}public function proxyStatusUpdated()@@ -61,7 +61,7 @@ class Deploy extends Componentpublic function restart(){try {- $this->stop();+ $this->stop(forceStop: false);$this->dispatch('checkProxy');} catch (\Throwable $e) {return handleError($e, $this);@@ -91,7 +91,7 @@ class Deploy extends Component}}- public function stop()+ public function stop(bool $forceStop = true){try {if ($this->server->isSwarm()) {@@ -104,7 +104,7 @@ class Deploy extends Component], $this->server);}$this->server->proxy->status = 'exited';- $this->server->proxy->force_stop = true;+ $this->server->proxy->force_stop = $forceStop;$this->server->save();$this->dispatch('proxyStatusUpdated');} catch (\Throwable $e) {diff --git a/app/Livewire/Server/Proxy/Status.php b/app/Livewire/Server/Proxy/Status.phpindex 8dd4dd8e64..d23d7fc20e 100644--- a/app/Livewire/Server/Proxy/Status.php+++ b/app/Livewire/Server/Proxy/Status.php@@ -16,7 +16,10 @@ class Status extends Componentpublic int $numberOfPolls = 0;- protected $listeners = ['proxyStatusUpdated' => '$refresh', 'startProxyPolling'];+ protected $listeners = [+ 'proxyStatusUpdated',+ 'startProxyPolling',+ ];public function startProxyPolling(){