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: missing environment variables prevewi on service
Andras Bacsai3bffe3f0106a
diff --git a/app/Models/Service.php b/app/Models/Service.phpindex ce676f63ef..09aa88a3e0 100644--- a/app/Models/Service.php+++ b/app/Models/Service.php@@ -90,6 +90,10 @@ class Service extends BaseModel{return $this->hasMany(EnvironmentVariable::class)->orderBy('key', 'asc');}+ public function environment_variables_preview(): HasMany+ {+ return $this->hasMany(EnvironmentVariable::class)->where('is_preview', true)->orderBy('key', 'asc');+ }public function workdir(){return service_configuration_dir() . "/{$this->uuid}";