fix: preview fqdn generation

This commit is contained in:
Andras Bacsai 2024-08-29 12:50:04 +02:00
parent cfc6518157
commit 4a64374bb3

View File

@ -79,8 +79,15 @@ public function generate_preview($preview_id)
return; return;
} }
$fqdn = generateFqdn($this->application->destination->server, $this->application->uuid); if ($this->application->build_pack === 'dockercompose') {
$preview->generate_preview_fqdn_compose();
$this->application->refresh();
$this->dispatch('success', 'Domain generated.');
return;
}
$fqdn = generateFqdn($this->application->destination->server, $this->application->uuid);
$url = Url::fromString($fqdn); $url = Url::fromString($fqdn);
$template = $this->application->preview_url_template; $template = $this->application->preview_url_template;
$host = $url->getHost(); $host = $url->getHost();