replace make serve with nominatim serve command

With the website directory now tied to the project directory instead
of the build directory, it is no longer possible to use make for
running the web server.
This commit is contained in:
Sarah Hoffmann
2021-02-03 16:17:46 +01:00
parent b2f8fb6201
commit 0b2abfb115
5 changed files with 42 additions and 21 deletions

View File

@@ -117,22 +117,6 @@ if (BUILD_IMPORTER)
${PROJECT_BINARY_DIR}/nominatim)
endif()
#-----------------------------------------------------------------------------
# Targets for running a development webserver from the build directory.
#-----------------------------------------------------------------------------
if (BUILD_API)
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
#-----------------------------------------------------------------------------