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
Reset default labels when application FQDN is updated
Andras Bacsai5ec553f68dec
diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.phpindex 7c3700107b..a8032f6f84 100644--- a/app/Livewire/Project/Application/General.php+++ b/app/Livewire/Project/Application/General.php@@ -177,6 +177,9 @@ class General extends Component$this->loadComposeFile();}}+ public function updatedApplicationFqdn() {+ $this->resetDefaultLabels();+ }public function updatedApplicationBuildPack(){if ($this->application->build_pack !== 'nixpacks') {@@ -204,11 +207,13 @@ class General extends Component$fqdn = generateFqdn($server, $this->application->uuid);$this->application->fqdn = $fqdn;$this->application->save();+ $this->resetDefaultLabels();$this->dispatch('success', 'Wildcard domain generated.');}}public function resetDefaultLabels(){+ ray('resetDefaultLabels');$this->customLabels = str(implode("|", generateLabelsApplication($this->application)))->replace("|", "\n");$this->ports_exposes = $this->application->ports_exposes;