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 replaceVariables function in services.php to use a more concise syntax
Andras Bacsai9a9be466f776
diff --git a/bootstrap/helpers/services.php b/bootstrap/helpers/services.phpindex 8e3c0337ed..5b71a8b103 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->after('${')->before('}');}function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase|Application $oneService, bool $isInit = false)