Fix issue with saving environment variables in ApplicationDeploymentJob.php
This commit is contained in:
parent
d09c88f71c
commit
5e1396025c
@ -775,6 +775,7 @@ private function save_environment_variables()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($envs->isEmpty()) {
|
if ($envs->isEmpty()) {
|
||||||
|
$this->env_filename = null;
|
||||||
$this->execute_remote_command(
|
$this->execute_remote_command(
|
||||||
[
|
[
|
||||||
"command" => "rm -f $this->configuration_dir/{$this->env_filename}",
|
"command" => "rm -f $this->configuration_dir/{$this->env_filename}",
|
||||||
@ -782,7 +783,6 @@ private function save_environment_variables()
|
|||||||
"ignore_errors" => true
|
"ignore_errors" => true
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
$this->env_filename = null;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// $this->execute_remote_command([
|
// $this->execute_remote_command([
|
||||||
@ -1295,7 +1295,7 @@ private function generate_compose_file()
|
|||||||
// $docker_compose['services'][$this->container_name]['env_file'] = [$this->env_filename];
|
// $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];
|
$docker_compose['services'][$this->container_name]['env_file'] = [$this->env_filename];
|
||||||
}
|
}
|
||||||
if (!$this->custom_healthcheck_found) {
|
if (!$this->custom_healthcheck_found) {
|
||||||
|
Loading…
Reference in New Issue
Block a user