Hack to force HelioHost DB

This commit is contained in:
Hippo 2019-09-26 21:40:34 +05:30
parent a9d939a939
commit 22c3112a16

View file

@ -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);