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.
This commit is contained in:
parent
941afa3585
commit
91e070b2c3
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue