diff --git a/src/config.js b/src/config.js index fb6232d4..adb250a1 100644 --- a/src/config.js +++ b/src/config.js @@ -12,7 +12,7 @@ const LOGGER = require('@calzoneman/jsli')('config'); var defaults = { database: { - client: "mysql", + client: "mysql", server: "localhost", port: 3306, database: "cytube3", diff --git a/src/database.js b/src/database.js index ef70d256..f545883f 100644 --- a/src/database.js +++ b/src/database.js @@ -30,7 +30,7 @@ class Database { constructor(knexConfig = null) { if (knexConfig === null) { knexConfig = { - client: 'database', + client: Config.get('database.client'), connection: { host: Config.get('database.server'), port: Config.get('database.port'),