fix(ApplicationDeploymentJob): ensure correct COOLIFY_FQDN/COOLIFY_URL values (#4719)
This commit is contained in:
parent
0409e9184c
commit
8d359cd53e
1 changed files with 3 additions and 3 deletions
|
|
@ -1365,9 +1365,9 @@ private function set_coolify_variables()
|
||||||
$fqdn = $this->preview->fqdn;
|
$fqdn = $this->preview->fqdn;
|
||||||
}
|
}
|
||||||
if (isset($fqdn)) {
|
if (isset($fqdn)) {
|
||||||
$this->coolify_variables .= "COOLIFY_FQDN={$fqdn} ";
|
$this->coolify_variables .= "COOLIFY_URL={$fqdn} ";
|
||||||
$url = str($fqdn)->replace('http://', '')->replace('https://', '');
|
$fqdn_without_protocol = str($fqdn)->replace('http://', '')->replace('https://', '');
|
||||||
$this->coolify_variables .= "COOLIFY_URL={$url} ";
|
$this->coolify_variables .= "COOLIFY_FQDN={$fqdn_without_protocol} ";
|
||||||
}
|
}
|
||||||
if (isset($this->application->git_branch)) {
|
if (isset($this->application->git_branch)) {
|
||||||
$this->coolify_variables .= "COOLIFY_BRANCH={$this->application->git_branch} ";
|
$this->coolify_variables .= "COOLIFY_BRANCH={$this->application->git_branch} ";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue