From 91e070b2c31c576502e90c45bd13789bfe8f3ef6 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 14 Oct 2025 20:43:11 +0200 Subject: [PATCH] fix: add missing save_runtime_environment_variables() in deploy_simple_dockerfile Fixes pure Dockerfile deployment failing with 'env file not found' error. The deploy_simple_dockerfile() method was missing the call to save_runtime_environment_variables() which creates the .env file needed during the rolling update phase. This call is present in all other deployment methods (dockerfile, dockercompose, nixpacks, static) but was missing here. This ensures the .env file exists when docker compose tries to use --env-file during the rolling update. --- app/Jobs/ApplicationDeploymentJob.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php index eafd25e07..3951de31b 100644 --- a/app/Jobs/ApplicationDeploymentJob.php +++ b/app/Jobs/ApplicationDeploymentJob.php @@ -491,6 +491,11 @@ private function deploy_simple_dockerfile() $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(); }