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: cannot delete env with available services
Andras Bacsai4a84c7238ab3
diff --git a/app/Models/Environment.php b/app/Models/Environment.phpindex 470ad5e6ca..624787ba6b 100644--- a/app/Models/Environment.php+++ b/app/Models/Environment.php@@ -14,7 +14,7 @@ class Environment extends Modelpublic function can_delete_environment(){- return $this->applications()->count() == 0 && $this->postgresqls()->count() == 0;+ return $this->applications()->count() == 0 && $this->postgresqls()->count() == 0 && $this->services()->count() == 0;}public function applications()