refactor(config.js): Extract config file

* Separate different config source to each files
* Freeze config object
This commit is contained in:
BoHong Li
2017-04-13 01:57:55 +08:00
committed by Raccoon Li
parent 4738ba7d36
commit ecb0533605
15 changed files with 767 additions and 618 deletions

View File

@@ -0,0 +1,8 @@
'use strict'
module.exports = {
debug: process.env.DEBUG,
dburl: process.env.DATABASE_URL,
urlpath: process.env.URL_PATH,
port: process.env.PORT
}