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: add missing save_runtime_environment_variables() in deploy_simple_dockerfile

Andras Bacsai91e070b2c31c
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php
index eafd25e07c..3951de31b9 100644
--- a/app/Jobs/ApplicationDeploymentJob.php
+++ b/app/Jobs/ApplicationDeploymentJob.php
@@ -491,6 +491,11 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
$this->generate_build_env_variables();
$this->add_build_env_variables_to_dockerfile();
$this->build_image();
+
+ // Save runtime environment variables AFTER the build
+ // This overwrites the build-time .env with ALL variables (build-time + runtime)
+ $this->save_runtime_environment_variables();
+
$this->push_to_docker_registry();
$this->rolling_update();
}