Use env PORT if defined

This commit is contained in:
NGPixel
2017-04-18 20:31:07 -04:00
parent 32ac3a9fac
commit bad59d1a99
3 changed files with 12 additions and 8 deletions

View File

@@ -54,12 +54,6 @@ module.exports = {
self[modelName] = require(path.join(dbModelsPath, file))
})
// Using ENV variable?
if (_.startsWith(appconfig.db, '$')) {
appconfig.db = process.env[appconfig.db.slice(1)]
}
// Connect
self.onReady = modb.connect(appconfig.db)