]> git.openstreetmap.org Git - nominatim.git/commitdiff
add 'make serve' command
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 19 Jun 2020 15:35:24 +0000 (17:35 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 19 Jun 2020 15:35:24 +0000 (17:35 +0200)
Starts up PHP's built-in webserver in the website/ directory.
Useful for testing and development.

See #1831.

CMakeLists.txt

index facd3f30bb692a82ed29283d65514e160ba12a83..787baeb23de7e0c9afb7621024d2f448b2c63391 100644 (file)
@@ -141,6 +141,11 @@ if (BUILD_API)
            COMMAND ln -sf ${PROJECT_SOURCE_DIR}/website/${wp} ${PROJECT_BINARY_DIR}/website/
        )
    endforeach()
+
+   add_custom_target(serve
+           php -S 127.0.0.1:8088
+           WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/website
+   )
 endif()
 
 #-----------------------------------------------------------------------------