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: default value do not overwrite existing env value
Andras Bacsai335788c2d640
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex 3681a6c0c0..65aad2abca 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -913,13 +913,17 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = falcontinue;}if ($value?->startsWith('$')) {- $value = Str::of(replaceVariables($value));- $key = $value;$foundEnv = EnvironmentVariable::where(['key' => $key,'service_id' => $resource->id,])->first();+ $value = Str::of(replaceVariables($value));+ $key = $value;if ($value->startsWith('SERVICE_')) {+ $foundEnv = EnvironmentVariable::where([+ 'key' => $key,+ 'service_id' => $resource->id,+ ])->first();['command' => $command, 'forService' => $forService, 'generatedValue' => $generatedValue, 'port' => $port] = parseEnvVariable($value);if ($command->value() === 'FQDN' || $command->value() === 'URL') {if (Str::lower($forService) === $serviceName) {