Skip to content

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.

fix: fqdn null in case docker compose bp

Andras Bacsai5d3de967f027
diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.php
index 3279ff2d54..274e198a8b 100644
--- a/app/Livewire/Project/Application/General.php
+++ b/app/Livewire/Project/Application/General.php
@@ -112,6 +112,10 @@ class General extends Component
} catch (\Throwable $e) {
$this->dispatch('error', $e->getMessage());
}
+ if ($this->application->build_pack === 'dockercompose') {
+ $this->application->fqdn = null;
+ $this->application->settings->save();
+ }
$this->parsedServiceDomains = $this->application->docker_compose_domains ? json_decode($this->application->docker_compose_domains, true) : [];
$this->ports_exposes = $this->application->ports_exposes;
@@ -163,7 +167,12 @@ class General extends Component
}
return $domain;
}
-
+ public function updatedApplicationBaseDirectory() {
+ raY('asdf');
+ if ($this->application->build_pack === 'dockercompose') {
+ $this->loadComposeFile();
+ }
+ }
public function updatedApplicationBuildPack()
{
if ($this->application->build_pack !== 'nixpacks') {
@@ -211,7 +220,6 @@ class General extends Component
$this->application->fqdn = $this->application->fqdn->unique()->implode(',');
$this->application->save();
$this->resetDefaultLabels(false);
- // $this->dispatch('success', 'Labels reset to default!');
}
public function submit($showToaster = true)
{