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
Refactor application submit method to handle dockercompose build pack
Andras Bacsai7f5d7e0eb05f
diff --git a/app/Http/Livewire/Project/Application/General.php b/app/Http/Livewire/Project/Application/General.phpindex 2917fa4380..87b894bf4c 100644--- a/app/Http/Livewire/Project/Application/General.php+++ b/app/Http/Livewire/Project/Application/General.php@@ -199,7 +199,7 @@ class General extends Componentpublic function submit($showToaster = true){try {- if ($this->initialDockerComposeLocation !== $this->application->docker_compose_location || $this->initialDockerComposePrLocation !== $this->application->docker_compose_pr_location) {+ if ($this->application->build_pack === 'dockercompose' && ($this->initialDockerComposeLocation !== $this->application->docker_compose_location || $this->initialDockerComposePrLocation !== $this->application->docker_compose_pr_location)) {$this->loadComposeFile();}$this->validate();@@ -234,10 +234,12 @@ class General extends Component$this->customLabels = str($this->customLabels)->replace(',', "\n");}$this->application->custom_labels = $this->customLabels->explode("\n")->implode(',');- $this->application->docker_compose_domains = json_encode($this->parsedServiceDomains);+ if ($this->application->build_pack === 'dockercompose') {+ $this->application->docker_compose_domains = json_encode($this->parsedServiceDomains);+ $this->parsedServices = $this->application->parseCompose();+ }$this->application->save();$showToaster && $this->emit('success', 'Application settings updated!');- $this->parsedServices = $this->application->parseCompose();} catch (\Throwable $e) {return handleError($e, $this);} finally {