move DS web to resources for deploys

This commit is contained in:
Stephen Birarda 2013-09-13 11:21:03 -07:00
parent d089991237
commit c40e848220
12 changed files with 4 additions and 4 deletions

View file

@ -11,11 +11,11 @@ setup_hifi_project(${TARGET_NAME} TRUE)
# remove and then copy the files for the webserver
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E remove_directory
$<TARGET_FILE_DIR:${TARGET_NAME}>/web)
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources/web)
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${PROJECT_SOURCE_DIR}/src/web"
$<TARGET_FILE_DIR:${TARGET_NAME}>/web)
"${PROJECT_SOURCE_DIR}/resources/web"
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources/web)
# link the shared hifi library
include(${MACRO_DIR}/LinkHifiLibrary.cmake)

View file

@ -155,7 +155,7 @@ int main(int argc, const char* argv[]) {
// list of options. Last element must be NULL.
const char *options[] = {"listening_ports", "8080",
"document_root", "./web", NULL};
"document_root", "./resources/web", NULL};
callbacks.begin_request = mongooseRequestHandler;
callbacks.upload = mongooseUploadHandler;