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')) {
|
if (nconf.get('prod')) {
|
||||||
overrides.NODE_ENV = 'production';
|
overrides.NODE_ENV = 'production';
|
||||||
}
|
} else if (nconf.get('debug')) {
|
||||||
else if (nconf.get('debug')) {
|
|
||||||
overrides.NODE_ENV = 'development';
|
overrides.NODE_ENV = 'development';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load overrides as second priority
|
// Load overrides as second priority
|
||||||
nconf.overrides(overrides);
|
nconf.overrides(overrides);
|
||||||
|
|
||||||
|
|
||||||
// Load enviroment variables as third priority
|
// Load enviroment variables as third priority
|
||||||
nconf.env();
|
nconf.env();
|
||||||
|
|
||||||
|
|
||||||
// Load the config if it exists.
|
// Load the config if it exists.
|
||||||
nconf.file(nconf.get('config') || './config.json');
|
nconf.file(nconf.get('config') || './config.json');
|
||||||
|
|
||||||
|
|
||||||
// Default variables
|
// Default variables
|
||||||
nconf.defaults({
|
nconf.defaults({
|
||||||
name: nconf.get('name') || 'spserver',
|
name: nconf.get('name') || 'spserver',
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var http = require('http');
|
var http = require('http');
|
||||||
var _ = require('lodash');
|
|
||||||
var nStatic = require('node-static');
|
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
|
||||||
|
var _ = require('lodash');
|
||||||
|
var nStatic = require('node-static');
|
||||||
|
|
||||||
var config = require('./config');
|
var config = require('./config');
|
||||||
var logger = require('./logger');
|
var logger = require('./logger');
|
||||||
|
|
Loading…
Reference in a new issue