From: Chocobozzz Date: Fri, 15 Dec 2017 07:21:00 +0000 (+0100) Subject: Fix database connection (host + port) X-Git-Tag: v0.0.1-alpha~129 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=228077efd73485a2832bb6211c9fa923158c2112;p=oweals%2Fpeertube.git Fix database connection (host + port) --- 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,