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 log drain issue in advanced and service application
Andras Bacsai25a0489f7f70
diff --git a/app/Http/Livewire/Project/Application/Advanced.php b/app/Http/Livewire/Project/Application/Advanced.phpindex 552a3873ab..656c557172 100644--- a/app/Http/Livewire/Project/Application/Advanced.php+++ b/app/Http/Livewire/Project/Application/Advanced.php@@ -23,7 +23,7 @@ class Advanced extends Component];public function instantSave(){- if ($this->application->settings->is_log_drain_enabled) {+ if ($this->application->isLogDrainEnabled()) {if (!$this->application->destination->server->isLogDrainEnabled()) {$this->application->settings->is_log_drain_enabled = false;$this->emit('error', 'Log drain is not enabled on this server.');diff --git a/app/Http/Livewire/Project/Service/Application.php b/app/Http/Livewire/Project/Service/Application.phpindex 8a785b9c65..14fd3d5ab4 100644--- a/app/Http/Livewire/Project/Service/Application.php+++ b/app/Http/Livewire/Project/Service/Application.php@@ -28,7 +28,12 @@ class Application extends Component}public function instantSaveAdvanced(){- $this->submit();+ if (!$this->application->service->destination->server->isLogDrainEnabled()) {+ $this->application->is_log_drain_enabled = false;+ $this->emit('error', 'Log drain is not enabled on the server. Please enable it first.');+ return;+ }+ $this->application->save();$this->emit('success', 'You need to restart the service for the changes to take effect.');}public function delete()@@ -49,11 +54,6 @@ class Application extends Component{try {$this->validate();- if (!$this->application->service->destination->server->isLogDrainEnabled()) {- $this->application->is_log_drain_enabled = false;- $this->emit('error', 'Log drain is not enabled on the server. Please enable it first.');- return;- }$this->application->save();updateCompose($this->application);$this->emit('success', 'Application saved successfully.');