From: Brian Quinion Date: Thu, 13 Jun 2013 17:07:19 +0000 (+0100) Subject: Check to see if we can access the website at the configured CONST_Website_BaseURL X-Git-Tag: v2.2.0~60 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/5e6fdc467ca3e54b84ca902a4ee81a8e592e474c?ds=sidebyside;hp=--cc Check to see if we can access the website at the configured CONST_Website_BaseURL --- 5e6fdc467ca3e54b84ca902a4ee81a8e592e474c diff --git a/utils/setup.php b/utils/setup.php index 081efd0d..f2feeadb 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -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)