From 660d9115396fda76d05d15d8c6d7d618dc05d01c Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Mon, 15 May 2017 09:09:06 +0100 Subject: [PATCH] Add a generated tawashi.ini for debug runs. --- CMakeLists.txt | 4 ++++ config/debug_tawashi.ini.in | 7 +++++++ config/tawashi.ini | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 config/debug_tawashi.ini.in diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c35952..86cf0c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,10 @@ configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/src/tawashiConfig.h.in" "${TAWASHI_GEN_INCLUDE_DIR}/tawashiConfig.h" ) +configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/config/debug_tawashi.ini.in" + "${CMAKE_CURRENT_BINARY_DIR}/tawashi.ini" +) add_subdirectory(lib/incredis) add_subdirectory(lib/mstch) diff --git a/config/debug_tawashi.ini.in b/config/debug_tawashi.ini.in new file mode 100644 index 0000000..ea612c9 --- /dev/null +++ b/config/debug_tawashi.ini.in @@ -0,0 +1,7 @@ +[tawashi] +redis_server = 127.0.0.1 +redis_port = 6379 +redis_mode = inet +base_uri = http://127.0.0.1:8080 +website_root = @CMAKE_CURRENT_BINARY_DIR@/html +logging_level = debug diff --git a/config/tawashi.ini b/config/tawashi.ini index 6f0ac7e..3a2aa59 100644 --- a/config/tawashi.ini +++ b/config/tawashi.ini @@ -3,5 +3,5 @@ redis_server = 127.0.0.1 redis_port = 6379 redis_mode = inet base_uri = http://127.0.0.1:8080 -website_root = /home/michele/dev/code/cpp/tawashi/html +website_root = html logging_level = trace