mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-25 23:25:51 +00:00
Cleanup pull request diff
This commit is contained in:
parent
822f779812
commit
624d3360db
2 changed files with 6 additions and 5 deletions
|
|
@ -1,8 +1,9 @@
|
|||
// Load nconf and define default configuration values if config.json or ENV vars are not found
|
||||
var conf = require('nconf');
|
||||
conf.argv().env().file({ file: __dirname + "/config.json" }).defaults({
|
||||
'PORT': 3000,
|
||||
'IP': '0.0.0.0'
|
||||
'IP': '0.0.0.0',
|
||||
'BASE_URL': 'http://localhost',
|
||||
'NODE_ENV': 'development'
|
||||
});
|
||||
|
||||
// Override normal ENV values with nconf ENV values (ENV values are used the same way without nconf)
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ middleware = require './middleware'
|
|||
racer.io.set('transports', ['xhr-polling'])
|
||||
racer.ioClient.set('reconnection limit', 300000) # max reconect timeout to 5 minutes
|
||||
racer.set('bundleTimeout', 40000)
|
||||
unless process.env.NODE_ENV == 'production'
|
||||
racer.use(racer.logPlugin)
|
||||
derby.use(derby.logPlugin)
|
||||
#unless process.env.NODE_ENV == 'production'
|
||||
# racer.use(racer.logPlugin)
|
||||
# derby.use(derby.logPlugin)
|
||||
|
||||
# Infinite stack trace
|
||||
Error.stackTraceLimit = Infinity if process.env.NODE_ENV is 'development'
|
||||
|
|
|
|||
Loading…
Reference in a new issue