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 services.php file to improve variable replacement logic
Andras Bacsai11baa97ef620
diff --git a/bootstrap/helpers/services.php b/bootstrap/helpers/services.phpindex 8e3c0337ed..26a69222ab 100644--- a/bootstrap/helpers/services.php+++ b/bootstrap/helpers/services.php@@ -18,7 +18,7 @@ function collectRegex(string $name)}function replaceVariables($variable){- return $variable->replaceFirst('$', '')->replaceFirst('{', '')->replaceLast('}', '');+ return $variable->before('}')->replaceFirst('$', '')->replaceFirst('{', '');}function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase|Application $oneService, bool $isInit = false)@@ -27,7 +27,7 @@ function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase|Appliif ($oneService->getMorphClass() === 'App\Models\Application') {$workdir = $oneService->workdir();$server = $oneService->destination->server;- } else{+ } else {$workdir = $oneService->service->workdir();$server = $oneService->service->server;}