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(core): update environment variable generation logic in ApplicationDeploymentJob to handle different build packs
Andras Bacsaic3c032ebbd94
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex 5597eebc93..a6d3bc1a25 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -2288,8 +2288,12 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");private function generate_build_env_variables(){- $variables = collect($this->nixpacks_plan_json->get('variables'));- $variables->put('SOURCE_COMMIT', $this->commit);+ if ($this->application->build_pack === 'nixpacks') {+ $variables = collect($this->nixpacks_plan_json->get('variables'));+ } else {+ $this->generate_env_variables();+ $variables = collect([])->merge($this->env_args);+ }$this->build_args = $variables->map(function ($value, $key) {$value = escapeshellarg($value);