fix format and use database.client
This commit is contained in:
parent
0b806cec92
commit
4846b22cd1
|
@ -12,7 +12,7 @@ const LOGGER = require('@calzoneman/jsli')('config');
|
||||||
|
|
||||||
var defaults = {
|
var defaults = {
|
||||||
database: {
|
database: {
|
||||||
client: "mysql",
|
client: "mysql",
|
||||||
server: "localhost",
|
server: "localhost",
|
||||||
port: 3306,
|
port: 3306,
|
||||||
database: "cytube3",
|
database: "cytube3",
|
||||||
|
|
|
@ -30,7 +30,7 @@ class Database {
|
||||||
constructor(knexConfig = null) {
|
constructor(knexConfig = null) {
|
||||||
if (knexConfig === null) {
|
if (knexConfig === null) {
|
||||||
knexConfig = {
|
knexConfig = {
|
||||||
client: 'database',
|
client: Config.get('database.client'),
|
||||||
connection: {
|
connection: {
|
||||||
host: Config.get('database.server'),
|
host: Config.get('database.server'),
|
||||||
port: Config.get('database.port'),
|
port: Config.get('database.port'),
|
||||||
|
|
Loading…
Reference in a new issue