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: streamline proxy status handling in StartProxy and Navbar components
Andras Bacsaibd88bbca5ba4
diff --git a/app/Actions/Proxy/StartProxy.php b/app/Actions/Proxy/StartProxy.phpindex ecfb13d0b9..8671a5f27a 100644--- a/app/Actions/Proxy/StartProxy.php+++ b/app/Actions/Proxy/StartProxy.php@@ -19,6 +19,11 @@ class StartProxyif ((is_null($proxyType) || $proxyType === 'NONE' || $server->proxy->force_stop || $server->isBuildServer()) && $force === false) {return 'OK';}+ $server->proxy->set('status', 'starting');+ $server->save();+ $server->refresh();+ ProxyStatusChangedUI::dispatch($server->team_id);+$commands = collect([]);$proxy_path = $server->proxyPath();$configuration = GetProxyConfiguration::run($server);@@ -64,14 +69,12 @@ class StartProxy]);$commands = $commands->merge(connectProxyToNetworks($server));}- $server->proxy->set('status', 'starting');- $server->save();- ProxyStatusChangedUI::dispatch($server->team_id);if ($async) {return remote_process($commands, $server, callEventOnFinish: 'ProxyStatusChanged', callEventData: $server->id);} else {instant_remote_process($commands, $server);+$server->proxy->set('type', $proxyType);$server->save();ProxyStatusChanged::dispatch($server->id);diff --git a/app/Livewire/Server/Navbar.php b/app/Livewire/Server/Navbar.phpindex 32799b83d3..6baa54672d 100644--- a/app/Livewire/Server/Navbar.php+++ b/app/Livewire/Server/Navbar.php@@ -120,7 +120,6 @@ class Navbar extends Component{$this->server->refresh();$this->proxyStatus = $this->server->proxy->status ?? 'unknown';- $forceStop = $this->server->proxy->force_stop ?? false;switch ($this->proxyStatus) {case 'running':