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 issue with saving environment variables in ApplicationDeploymentJob.php
Andras Bacsai5e1396025cdc
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex fa5fb7d937..594b1e412c 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -775,6 +775,7 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted}if ($envs->isEmpty()) {+ $this->env_filename = null;$this->execute_remote_command(["command" => "rm -f $this->configuration_dir/{$this->env_filename}",@@ -782,7 +783,6 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted"ignore_errors" => true]);- $this->env_filename = null;return;}// $this->execute_remote_command([@@ -1295,7 +1295,7 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted// $docker_compose['services'][$this->container_name]['env_file'] = [$this->env_filename];// }// }- if ($this->env_filename) {+ if (!is_null($this->env_filename)) {$docker_compose['services'][$this->container_name]['env_file'] = [$this->env_filename];}if (!$this->custom_healthcheck_found) {