Hack to force HelioHost DB
This commit is contained in:
parent
a9d939a939
commit
22c3112a16
1 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue