fix(ApplicationDeploymentJob): ensure correct COOLIFY_FQDN/COOLIFY_URL values (#4719)

This commit is contained in:
Bayram Kazık
2025-05-16 09:50:18 +03:00
parent 0409e9184c
commit 8d359cd53e

View File

@@ -1365,9 +1365,9 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
$fqdn = $this->preview->fqdn;
}
if (isset($fqdn)) {
$this->coolify_variables .= "COOLIFY_FQDN={$fqdn} ";
$url = str($fqdn)->replace('http://', '')->replace('https://', '');
$this->coolify_variables .= "COOLIFY_URL={$url} ";
$this->coolify_variables .= "COOLIFY_URL={$fqdn} ";
$fqdn_without_protocol = str($fqdn)->replace('http://', '')->replace('https://', '');
$this->coolify_variables .= "COOLIFY_FQDN={$fqdn_without_protocol} ";
}
if (isset($this->application->git_branch)) {
$this->coolify_variables .= "COOLIFY_BRANCH={$this->application->git_branch} ";