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