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(core): add server functionality check before dispatching container status
Andras Bacsai40ad11849275
diff --git a/app/Livewire/Project/Database/Heading.php b/app/Livewire/Project/Database/Heading.phpindex fc0febd024..c3b57b9f4d 100644--- a/app/Livewire/Project/Database/Heading.php+++ b/app/Livewire/Project/Database/Heading.php@@ -43,8 +43,10 @@ class Heading extends Componentpublic function check_status($showNotification = false){- GetContainersStatus::run($this->database->destination->server);- $this->database->refresh();+ if ($this->database->destination->server->isFunctional()) {+ GetContainersStatus::dispatch($this->database->destination->server);+ }+if ($showNotification) {$this->dispatch('success', 'Database status updated.');}diff --git a/app/Livewire/Project/Service/Configuration.php b/app/Livewire/Project/Service/Configuration.phpindex b36a860cee..da49dcae98 100644--- a/app/Livewire/Project/Service/Configuration.php+++ b/app/Livewire/Project/Service/Configuration.php@@ -92,7 +92,9 @@ class Configuration extends Componentpublic function check_status(){try {- GetContainersStatus::run($this->service->server);+ if ($this->service->server->isFunctional()) {+ GetContainersStatus::dispatch($this->service->server);+ }$this->service->applications->each(function ($application) {$application->refresh();});