An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: switching to static build
Andras Bacsaiacfe1daf9b49
diff --git a/app/Http/Livewire/Project/Application/General.php b/app/Http/Livewire/Project/Application/General.phpindex 87b894bf4c..376771203a 100644--- a/app/Http/Livewire/Project/Application/General.php+++ b/app/Http/Livewire/Project/Application/General.php@@ -29,8 +29,6 @@ class General extends Componentpublic ?string $initialDockerComposeLocation = null;public ?string $initialDockerComposePrLocation = null;- public bool $is_static;-public $parsedServices = [];public $parsedServiceDomains = [];@@ -124,6 +122,10 @@ class General extends Component{$this->application->settings->save();$this->emit('success', 'Settings saved.');+ $this->application->refresh();+ if ($this->ports_exposes !== $this->application->ports_exposes) {+ $this->resetDefaultLabels(false);+ }}public function loadComposeFile($isInit = false){@@ -156,7 +158,7 @@ class General extends Componentpublic function updatedApplicationBuildPack(){if ($this->application->build_pack !== 'nixpacks') {- $this->application->settings->is_static = $this->is_static = false;+ $this->application->settings->is_static = false;$this->application->settings->save();}if ($this->application->build_pack === 'dockercompose') {diff --git a/app/Models/ApplicationSetting.php b/app/Models/ApplicationSetting.phpindex 1340c8fa06..216553b305 100644--- a/app/Models/ApplicationSetting.php+++ b/app/Models/ApplicationSetting.php@@ -16,29 +16,16 @@ class ApplicationSetting extends Model'is_git_submodules_enabled' => 'boolean','is_git_lfs_enabled' => 'boolean',];- protected $fillable = [- 'application_id',- 'is_static',- 'is_auto_deploy_enabled',- 'is_force_https_enabled',- 'is_debug_enabled',- 'is_preview_deployments_enabled',- 'is_git_submodules_enabled',- 'is_git_lfs_enabled',- ];+ protected $guarded = [];public function isStatic(): Attribute{return Attribute::make(set: function ($value) {- if (is_null($this->application->ports_exposes)) {- if ($value) {- $this->application->ports_exposes = '80';- } else {- $this->application->ports_exposes = '3000';- }- $this->application->save();+ if ($value) {+ $this->application->ports_exposes = 80;}+ $this->application->save();return $value;});