From: Sarah Hoffmann Date: Thu, 4 Feb 2021 16:05:40 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~184 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/9afebddb16b09e09fa9a74624dcd79475b476f10?hp=-c Merge remote-tracking branch 'upstream/master' --- 9afebddb16b09e09fa9a74624dcd79475b476f10 diff --combined CMakeLists.txt index 037ae2be,f7d396d0..45b205fd --- a/CMakeLists.txt +++ b/CMakeLists.txt @@@ -117,37 -117,6 +117,27 @@@ if (BUILD_IMPORTER ${PROJECT_BINARY_DIR}/nominatim) endif() +#----------------------------------------------------------------------------- +# Targets for running a development webserver from the build directory. +#----------------------------------------------------------------------------- + +if (BUILD_API) + set(WEBSITEFILES + 403.html + 509.html + crossdomain.xml + favicon.ico + nominatim.xml + robots.txt + taginfo.json + ) + + foreach (webfile ${WEBSITEFILES}) + configure_file(${PROJECT_SOURCE_DIR}/website/${webfile} + ${PROJECT_BINARY_DIR}/website/${webfile}) + endforeach() - - add_custom_target(serve - php -S 127.0.0.1:8088 - WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/website - ) - - add_custom_target(serve-global - php -S 0.0.0.0:8088 - WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/website - ) +endif() + #----------------------------------------------------------------------------- # Tests #-----------------------------------------------------------------------------