]> git.openstreetmap.org Git - nominatim.git/commitdiff
Check to see if we can access the website at the configured CONST_Website_BaseURL
authorBrian Quinion <brian.quinion@mapquest.com>
Thu, 13 Jun 2013 17:07:19 +0000 (18:07 +0100)
committerBrian Quinion <brian.quinion@mapquest.com>
Thu, 13 Jun 2013 17:07:19 +0000 (18:07 +0100)
utils/setup.php

index 081efd0de477d6fce0ddc0b145a522d2b5c814aa..f2feeadb2c89a2b260998aaafcc892eb4dbeb518 100755 (executable)
                @symlink(CONST_BasePath.'/website/js', $sTargetDir.'/js');
                @symlink(CONST_BasePath.'/website/css', $sTargetDir.'/css');
                echo "Symlinks created\n";
                @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)
        }
 
        if (!$bDidSomething)