From a0a0720c745ef13bd54019ef6a2bdb0a580114c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Jaworski?= Date: Thu, 16 May 2019 14:01:34 +0200 Subject: [PATCH] concordia-server configured to use internal db and lemmagen --- CMakeLists.txt | 6 +++--- concordia-server/socket_lemmatizer.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f4b6818..9d2de64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,11 +74,11 @@ set(PHRASE_LOG_FILE_PATH "${concordia-server_SOURCE_DIR}/logs/phrase-searches.js # -------------- # db settings # -------------- -set (DB_NAME "concordia_server") +set (DB_NAME "concordia_db") set (DB_USER "concordia") set (DB_PASSWORD "concordia") -set (DB_HOST "localhost") -set (DB_PORT "6543") +set (DB_HOST "concordia-postgres") +set (DB_PORT "5432") configure_file ( "${concordia-server_SOURCE_DIR}/concordia-server/config.hpp.in" diff --git a/concordia-server/socket_lemmatizer.cpp b/concordia-server/socket_lemmatizer.cpp index 137f4ab..c9f379c 100644 --- a/concordia-server/socket_lemmatizer.cpp +++ b/concordia-server/socket_lemmatizer.cpp @@ -24,7 +24,7 @@ bool SocketLemmatizer::_connect() { throw ConcordiaException("Could not create socket for the lemmatizer."); } - std::string address = "127.0.0.1"; + std::string address = "lemmagen"; //setup address structure if(inet_addr(address.c_str()) == -1) {