]> git.openstreetmap.org Git - nominatim.git/commitdiff
add 'make serve-global'
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 16 Sep 2020 09:15:55 +0000 (11:15 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 16 Sep 2020 09:15:55 +0000 (11:15 +0200)
This runs the PHP development server in a mode where it listens
globally. This is needed when running inside vagrant and port-forwarding
to the host machine.

CMakeLists.txt

index 787baeb23de7e0c9afb7621024d2f448b2c63391..43721cc4c6bdf33b4350988a2c6c2f51ade8e56d 100644 (file)
@@ -146,6 +146,11 @@ if (BUILD_API)
            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()
 
 #-----------------------------------------------------------------------------