From 22c3112a169970e38f42c0fde9c877cc681dca48 Mon Sep 17 00:00:00 2001 From: Hippo Date: Thu, 26 Sep 2019 21:40:34 +0530 Subject: [PATCH] Hack to force HelioHost DB --- bin/create-config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bin/create-config b/bin/create-config index 7719d84..6b29021 100755 --- a/bin/create-config +++ b/bin/create-config @@ -110,10 +110,12 @@ function createConfig() { } function getMysqlConfig(connectionUrl) { + if (connectionUrl == null) { return {}; } +/* var dbConfig = url.parse(connectionUrl); if (dbConfig == null) { return {}; @@ -137,6 +139,18 @@ function getMysqlConfig(connectionUrl) { database: dbName }; return dbConnection; +*/ + + var dbConnection = { + host: process.env.DB_URL, + user: process.env.DB_USERNAME, + password: process.env.DB_PASSWORD, + database: process.env.DB_NAME, + charset: 'utf8' + }; + + return dbConnection; + } var configContents = JSON.stringify(createConfig(), null, 2);