Commit e1ee2aef authored by Leo Iannacone's avatar Leo Iannacone

assign variables export after reading user custom settings

parent 528474d1
...@@ -87,16 +87,8 @@ config.status.package.building = 'building' ...@@ -87,16 +87,8 @@ config.status.package.building = 'building'
config.status.package.failed = 'build-failed' config.status.package.failed = 'build-failed'
config.status.package.successed = 'build-successed' config.status.package.successed = 'build-successed'
// export some variable
config.web.paths = config.routes
config.web.events = config.events
config.web.status = config.status
config.web.host = config.host
config.web.hostname = config.host + ((config.port == 80) ? '' : ':' + config.port)
// read user configuration and merge it // read user configuration and merge it
/* /*
* update object1 with object2 values * update object1 with object2 values
*/ */
...@@ -131,5 +123,11 @@ try { ...@@ -131,5 +123,11 @@ try {
process.exit(1) process.exit(1)
} }
} finally { } finally {
// export some variable
config.web.paths = config.routes
config.web.events = config.events
config.web.status = config.status
config.web.host = config.host
config.web.hostname = config.host + ((config.port == 80) ? '' : ':' + config.port)
module.exports = config module.exports = config
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment