From ab4fe4d58a79da01a609793e03fbf91156165367 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 16 Sep 2020 11:15:55 +0200 Subject: [PATCH] add 'make serve-global' 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 787baeb2..43721cc4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() #----------------------------------------------------------------------------- -- 2.45.1