mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-26 13:27:52 +03:00
Check to see if we can access the website at the configured CONST_Website_BaseURL
This commit is contained in:
parent
c5c44f9a07
commit
5e6fdc467c
@ -635,6 +635,13 @@
|
||||
@symlink(CONST_BasePath.'/website/js', $sTargetDir.'/js');
|
||||
@symlink(CONST_BasePath.'/website/css', $sTargetDir.'/css');
|
||||
echo "Symlinks created\n";
|
||||
|
||||
$sTestFile = @file_get_contents(CONST_Website_BaseURL.'js/tiles.js');
|
||||
if (!$sTestFile)
|
||||
{
|
||||
echo "\nWARNING: Unable to access the website at ".CONST_Website_BaseURL."\n";
|
||||
echo "You may want to update settings/local.php with @define('CONST_Website_BaseURL', 'http://[HOST]/[PATH]/');\n";
|
||||
}
|
||||
}
|
||||
|
||||
if (!$bDidSomething)
|
||||
|
Loading…
Reference in New Issue
Block a user