From 228077efd73485a2832bb6211c9fa923158c2112 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 15 Dec 2017 08:21:00 +0100 Subject: [PATCH] Fix database connection (host + port) --- server/initializers/database.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 2260938b1..85d205cdc 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts @@ -28,13 +28,16 @@ require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to strin const dbname = CONFIG.DATABASE.DBNAME const username = CONFIG.DATABASE.USERNAME const password = CONFIG.DATABASE.PASSWORD +const host = CONFIG.DATABASE.HOSTNAME +const port = CONFIG.DATABASE.PORT const sequelizeTypescript = new SequelizeTypescript({ database: dbname, dialect: 'postgres', + host, + port, username, password, - modelPaths: [__dirname + '/models'], benchmark: isTestInstance(), isolationLevel: SequelizeTypescript.Transaction.ISOLATION_LEVELS.SERIALIZABLE, operatorsAliases: false, -- 2.25.1