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
Refactor Show.php and docker.php to improve code readability and maintainability
Andras Bacsaifaa1120e14d0
diff --git a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php b/app/Livewire/Project/Shared/EnvironmentVariable/Show.phpindex 65e91e60a4..9beb7cfab9 100644--- a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php+++ b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php@@ -50,9 +50,9 @@ class Show extends Componentpublic function checkEnvs(){$this->isDisabled = false;- if (str($this->env->key)->startsWith('SERVICE_FQDN') || str($this->env->key)->startsWith('SERVICE_URL')) {- $this->isDisabled = true;- }+ // if (str($this->env->key)->startsWith('SERVICE_FQDN') || str($this->env->key)->startsWith('SERVICE_URL')) {+ // $this->isDisabled = true;+ // }if ($this->env->is_shown_once) {$this->isLocked = true;}diff --git a/bootstrap/helpers/docker.php b/bootstrap/helpers/docker.phpindex 14ea491eeb..847a66c330 100644--- a/bootstrap/helpers/docker.php+++ b/bootstrap/helpers/docker.php@@ -182,6 +182,9 @@ function generateServiceSpecificFqdns(ServiceApplication|Application $resource,$environment_variables = $resource->environment_variables;$type = $resource->serviceType();}+ if (is_null($server) || is_null($type)) {+ return collect([]);+ }$variables = collect($environment_variables);$payload = collect([]);switch ($type) {