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(service): ensure configuration changes are properly tracked and dispatched
Andras Bacsai13a9816770d3
diff --git a/app/Actions/Service/StartService.php b/app/Actions/Service/StartService.phpindex d48594e629..dfef6a566d 100644--- a/app/Actions/Service/StartService.php+++ b/app/Actions/Service/StartService.php@@ -19,6 +19,7 @@ class StartServiceStopService::run(service: $service, dockerCleanup: false);}$service->saveComposeConfigs();+ $service->isConfigurationChanged(save: true);$commands[] = 'cd '.$service->workdir();$commands[] = "echo 'Saved configuration files to {$service->workdir()}.'";if ($pullLatestImages) {diff --git a/app/Livewire/Project/Service/Heading.php b/app/Livewire/Project/Service/Heading.phpindex d78fbe9ed7..3492da3246 100644--- a/app/Livewire/Project/Service/Heading.php+++ b/app/Livewire/Project/Service/Heading.php@@ -63,7 +63,7 @@ class Heading extends Component$this->service->databases->each(function ($database) {$database->refresh();});- if (is_null($this->service->config_hash) || $this->service->isConfigurationChanged()) {+ if (is_null($this->service->config_hash)) {$this->service->isConfigurationChanged(true);}$this->dispatch('configurationChanged');diff --git a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php b/app/Livewire/Project/Shared/EnvironmentVariable/Show.phpindex 535ac6c67c..966d626b16 100644--- a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php+++ b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php@@ -170,6 +170,7 @@ class Show extends Component$this->syncData(true);$this->dispatch('success', 'Environment variable updated.');$this->dispatch('envsUpdated');+ $this->dispatch('configurationChanged');} catch (\Exception $e) {return handleError($e);}