Update service and shared helper files

This commit is contained in:
Andras Bacsai
2024-02-21 12:22:32 +01:00
parent 74b24a0690
commit 4d319a8caa
2 changed files with 13 additions and 9 deletions

View File

@@ -974,13 +974,12 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
'is_preview' => false,
]);
}
// if (!$isDatabase) {
// ray($savedService,$fqdn);
// if ($command->value() === 'FQDN' && is_null($savedService->fqdn)) {
// $savedService->fqdn = $fqdn;
// $savedService->save();
// }
// }
if (!$isDatabase) {
if ($command->value() === 'FQDN' && is_null($savedService->fqdn) && !$foundEnv) {
$savedService->fqdn = $fqdn;
$savedService->save();
}
}
} else {
$generatedValue = generateEnvValue($command);
if (!$foundEnv) {