mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
Moved settings-frontend to website/
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once(dirname(dirname(__FILE__)).'/settings/settings-frontend.php');
|
require_once(dirname(dirname(__FILE__)).'/website/settings-frontend.php');
|
||||||
require_once(CONST_BasePath.'/@script_source@');
|
require_once(CONST_BasePath.'/@script_source@');
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ Run this script to verify all required tables and indices got created successful
|
|||||||
|
|
||||||
### Setting up the website
|
### Setting up the website
|
||||||
|
|
||||||
Run the following command to set up the `settings/settings-frontend.php`.
|
Run the following command to set up the `website/settings-frontend.php`.
|
||||||
These settings are used in website/*.php files. You can use the website only after this
|
These settings are used in website/*.php files. You can use the website only after this
|
||||||
step is completed.
|
step is completed.
|
||||||
|
|
||||||
|
|||||||
@@ -695,17 +695,13 @@ class SetupFunctions
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setup settings_test.php in the build/settings directory from build/.env file
|
* Setup settings-frontend.php in the build/website directory
|
||||||
*
|
*
|
||||||
* @return null
|
* @return null
|
||||||
*/
|
*/
|
||||||
public function setupWebsite()
|
public function setupWebsite()
|
||||||
{
|
{
|
||||||
$rOutputFile = fopen(CONST_InstallPath.'/settings/settings-frontend.php', 'w');
|
$rOutputFile = fopen(CONST_InstallPath.'/website/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, "<?php
|
fwrite($rOutputFile, "<?php
|
||||||
@define('CONST_BasePath', '".CONST_BasePath."');
|
@define('CONST_BasePath', '".CONST_BasePath."');
|
||||||
@@ -734,7 +730,7 @@ if (file_exists(getenv('NOMINATIM_SETTINGS'))) require_once(getenv('NOMINATIM_SE
|
|||||||
@define('CONST_Use_US_Tiger_Data', ".(CONST_Use_US_Tiger_Data ? 'true' : 'false').");
|
@define('CONST_Use_US_Tiger_Data', ".(CONST_Use_US_Tiger_Data ? 'true' : 'false').");
|
||||||
@define('CONST_Website_BaseURL', '".CONST_Website_BaseURL."');
|
@define('CONST_Website_BaseURL', '".CONST_Website_BaseURL."');
|
||||||
");
|
");
|
||||||
info(CONST_InstallPath.'/settings/settings-frontend.php has been set up successfully');
|
info(CONST_InstallPath.'/website/settings-frontend.php has been set up successfully');
|
||||||
}
|
}
|
||||||
|
|
||||||
private function removeFlatnodeFile()
|
private function removeFlatnodeFile()
|
||||||
|
|||||||
Reference in New Issue
Block a user