feat: heroku compatibility
This commit is contained in:
@@ -48,7 +48,7 @@ module.exports = {
|
||||
|
||||
appconfig = _.defaultsDeep(appconfig, appdata.defaults.config)
|
||||
|
||||
if (appconfig.port < 1) {
|
||||
if (appconfig.port < 1 || process.env.HEROKU) {
|
||||
appconfig.port = process.env.PORT || 80
|
||||
}
|
||||
|
||||
|
@@ -24,7 +24,7 @@ module.exports = {
|
||||
let self = this
|
||||
|
||||
let dbClient = null
|
||||
let dbConfig = (!_.isEmpty(process.env.WIKI_DB_CONNSTR)) ? process.env.WIKI_DB_CONNSTR : {
|
||||
let dbConfig = (!_.isEmpty(process.env.DATABASE_URL)) ? process.env.DATABASE_URL : {
|
||||
host: WIKI.config.db.host,
|
||||
user: WIKI.config.db.user,
|
||||
password: WIKI.config.db.pass,
|
||||
|
Reference in New Issue
Block a user