concordia-server configured to use internal db and lemmagen

This commit is contained in:
Rafał Jaworski 2019-05-16 14:01:34 +02:00
parent 052bcdbb78
commit a0a0720c74
2 changed files with 4 additions and 4 deletions

View File

@ -74,11 +74,11 @@ set(PHRASE_LOG_FILE_PATH "${concordia-server_SOURCE_DIR}/logs/phrase-searches.js
# -------------- # --------------
# db settings # db settings
# -------------- # --------------
set (DB_NAME "concordia_server") set (DB_NAME "concordia_db")
set (DB_USER "concordia") set (DB_USER "concordia")
set (DB_PASSWORD "concordia") set (DB_PASSWORD "concordia")
set (DB_HOST "localhost") set (DB_HOST "concordia-postgres")
set (DB_PORT "6543") set (DB_PORT "5432")
configure_file ( configure_file (
"${concordia-server_SOURCE_DIR}/concordia-server/config.hpp.in" "${concordia-server_SOURCE_DIR}/concordia-server/config.hpp.in"

View File

@ -24,7 +24,7 @@ bool SocketLemmatizer::_connect() {
throw ConcordiaException("Could not create socket for the lemmatizer."); throw ConcordiaException("Could not create socket for the lemmatizer.");
} }
std::string address = "127.0.0.1"; std::string address = "lemmagen";
//setup address structure //setup address structure
if(inet_addr(address.c_str()) == -1) { if(inet_addr(address.c_str()) == -1) {