Fix application build pack logic

This commit is contained in:
Andras Bacsai 2024-01-10 11:00:06 +01:00
parent 76f695036c
commit 95d0d72e0d

View File

@ -162,9 +162,13 @@ class General extends Component
}
public function updatedApplicationBuildPack()
{
ray($this->application->build_pack);
if ($this->application->build_pack !== 'nixpacks') {
$this->application->settings->is_static = false;
$this->application->settings->save();
} else {
$this->application->ports_exposes = $this->ports_exposes = 3000;
$this->resetDefaultLabels(false);
}
if ($this->application->build_pack === 'dockercompose') {
$this->application->fqdn = null;