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
feat: Add lazy loading for images in General.php and improve Docker Compose file handling in Application.php
Andras Bacsaieb41e023c719
diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.phpindex 2141a86d1b..885f842475 100644--- a/app/Livewire/Project/Application/General.php+++ b/app/Livewire/Project/Application/General.php@@ -298,7 +298,10 @@ class General extends Component}if ($this->application->build_pack === 'dockercompose' && $this->initialDockerComposeLocation !== $this->application->docker_compose_location) {- $this->loadComposeFile();+ $compose_return = $this->loadComposeFile();+ if ($compose_return instanceof \Livewire\Features\SupportEvents\Event) {+ return;+ }}$this->validate();if ($this->ports_exposes !== $this->application->ports_exposes) {diff --git a/app/Models/Application.php b/app/Models/Application.phpindex 98b2c23b13..1ce33cefb3 100644--- a/app/Models/Application.php+++ b/app/Models/Application.php@@ -847,7 +847,7 @@ class Application extends BaseModelif (!$composeFileContent) {$this->docker_compose_location = $initialDockerComposeLocation;$this->save();- throw new \RuntimeException("Could not load base compose file from $workdir$composeFile");+ throw new \RuntimeException("Docker Compose file not found at: $workdir$composeFile");} else {$this->docker_compose_raw = $composeFileContent;$this->save();