Fix minor spacing issues
This commit is contained in:
parent
f4dbcb9b12
commit
9acb178280
3 changed files with 14 additions and 18 deletions
|
@ -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',
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue