X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8c3a0efe8b75a06279998e66a932d8a56c483961..6c406124dd416ec62fc2ce0a4d07d597d3ae53f3:/lib/setup/SetupClass.php diff --git a/lib/setup/SetupClass.php b/lib/setup/SetupClass.php index 385eff70..38776a12 100755 --- a/lib/setup/SetupClass.php +++ b/lib/setup/SetupClass.php @@ -694,6 +694,49 @@ class SetupFunctions $this->removeFlatnodeFile(); } + /** + * Setup settings_test.php in the build/settings directory from build/.env file + * + * @return null + */ + public function setupWebsite() + { + $rOutputFile = fopen(CONST_InstallPath.'/settings/settings-frontend.php', 'w'); + + // Currently using CONST_BasePath and CONST_InstallPath. + // Once dotenv is setup, getenv() can be used, or another + // alternate option is to build settings_test.php using cmake. + + fwrite($rOutputFile, "