add 'make serve' command

Starts up PHP's built-in webserver in the website/ directory.
Useful for testing and development.

See #1831.
This commit is contained in:
Sarah Hoffmann 2020-06-19 17:35:24 +02:00
parent 5abec720d8
commit ebffa15c7c

View 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()
#-----------------------------------------------------------------------------