Fix minor spacing issues

This commit is contained in:
Misha Wolfson 2016-12-15 17:43:52 -05:00
parent f4dbcb9b12
commit 9acb178280
3 changed files with 14 additions and 18 deletions

View file

@ -10,23 +10,19 @@ var overrides = {};
if (nconf.get('prod')) {
overrides.NODE_ENV = 'production';
}
else if (nconf.get('debug')) {
} else if (nconf.get('debug')) {
overrides.NODE_ENV = 'development';
}
// Load overrides as second priority
nconf.overrides(overrides);
// Load enviroment variables as third priority
nconf.env();
// Load the config if it exists.
nconf.file(nconf.get('config') || './config.json');
// Default variables
nconf.defaults({
name: nconf.get('name') || 'spserver',

View file

@ -2,10 +2,10 @@
var fs = require('fs');
var http = require('http');
var _ = require('lodash');
var nStatic = require('node-static');
var path = require('path');
var _ = require('lodash');
var nStatic = require('node-static');
var config = require('./config');
var logger = require('./logger');