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: service domains and envs are properly updated
Andras Bacsai28c7e439b1a3
diff --git a/bootstrap/helpers/services.php b/bootstrap/helpers/services.phpindex 9140ca8c8d..6390f26e8c 100644--- a/bootstrap/helpers/services.php+++ b/bootstrap/helpers/services.php@@ -106,7 +106,7 @@ function updateCompose(ServiceApplication|ServiceDatabase $resource)if ($resourceFqdns->count() === 1) {$resourceFqdns = $resourceFqdns->first();$variableName = 'SERVICE_FQDN_'.str($resource->name)->upper()->replace('-', '');- $generatedEnv = EnvironmentVariable::where('service_id', $resource->service_id)->where('key', $variableName)->first();+ $generatedEnv = EnvironmentVariable::where('service_id', $resource->service_id)->where('key', 'LIKE', "{$variableName}_%")->first();$fqdn = Url::fromString($resourceFqdns);$port = $fqdn->getPort();$path = $fqdn->getPath();@@ -125,7 +125,7 @@ function updateCompose(ServiceApplication|ServiceDatabase $resource)}}$variableName = 'SERVICE_URL_'.str($resource->name)->upper()->replace('-', '');- $generatedEnv = EnvironmentVariable::where('service_id', $resource->service_id)->where('key', $variableName)->first();+ $generatedEnv = EnvironmentVariable::where('service_id', $resource->service_id)->where('key', 'LIKE', "{$variableName}_%")->first();$url = Url::fromString($fqdn);$port = $url->getPort();$path = $url->getPath();