diff options
author | Mike | 2017-02-15 10:22:38 +0100 |
---|---|---|
committer | GitHub | 2017-02-15 10:22:38 +0100 |
commit | d29aff6505ddb7e49153a5fc2082bc3efe08e512 (patch) | |
tree | fc761a27b0fda5d43ea997c653287b5fae6a918d | |
parent | fda08bcaec86848844da9933513ed41185169bdc (diff) |
first envs then the config
or docker -e will not work
Diffstat (limited to '')
-rw-r--r-- | lib/config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config.js b/lib/config.js index bdc2cbdb..a14bf978 100644 --- a/lib/config.js +++ b/lib/config.js @@ -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 |