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
No known key found for this signature in database
GPG key ID: A5440408E39DCB37

View file

@ -1365,9 +1365,9 @@ private function set_coolify_variables()
$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} ";