mirror of https://github.com/status-im/codimd.git
Merge pull request #358 from MikeMichel/patch-1
first envs then the config
This commit is contained in:
commit
e19712321f
|
@ -33,7 +33,7 @@ var defaultpermission = process.env.HMD_DEFAULT_PERMISSION || config.defaultperm
|
|||
defaultpermission = permissions.indexOf(defaultpermission) != -1 ? defaultpermission : 'editable';
|
||||
|
||||
// db
|
||||
var dburl = config.dburl || process.env.HMD_DB_URL || process.env.DATABASE_URL;
|
||||
var dburl = process.env.HMD_DB_URL || process.env.DATABASE_URL || config.dburl;
|
||||
var db = config.db || {};
|
||||
|
||||
// ssl path
|
||||
|
|
Loading…
Reference in New Issue