fix: reset domains on compose file change
This commit is contained in:
parent
3bda289428
commit
67131152cc
@ -966,6 +966,7 @@ function parseCompose(int $pull_request_id = 0)
|
||||
function loadComposeFile($isInit = false)
|
||||
{
|
||||
$initialDockerComposeLocation = $this->docker_compose_location;
|
||||
$initialDockerComposeRaw = $this->docker_compose_raw;
|
||||
// $initialDockerComposePrLocation = $this->docker_compose_pr_location;
|
||||
if ($this->build_pack === 'dockercompose') {
|
||||
if ($isInit && $this->docker_compose_raw) {
|
||||
@ -1020,8 +1021,13 @@ function loadComposeFile($isInit = false)
|
||||
"rm -rf /tmp/{$uuid}",
|
||||
]);
|
||||
instant_remote_process($commands, $this->destination->server, false);
|
||||
$parsedServices = $this->parseCompose();
|
||||
if (md5($this->docker_compose_raw) !== md5($initialDockerComposeRaw)) {
|
||||
$this->docker_compose_domains = null;
|
||||
$this->save();
|
||||
}
|
||||
return [
|
||||
'parsedServices' => $this->parseCompose(),
|
||||
'parsedServices' => $parsedServices,
|
||||
'initialDockerComposeLocation' => $this->docker_compose_location,
|
||||
'initialDockerComposePrLocation' => $this->docker_compose_pr_location,
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user