Corrected path to config.json

This commit is contained in:
Blade Barringer 2015-02-13 09:45:18 -06:00
parent 7cf8745375
commit 84ce4bb5d8

View file

@ -1,6 +1,5 @@
var nodemailer = require('nodemailer');
var nconf = require('nconf');
nconf.file({ file: './config.json' });
var crypto = require('crypto');
var path = require("path");
var request = require('request');
@ -117,7 +116,7 @@ module.exports.setupConfig = function(){
nconf.argv()
.env()
//.file('defaults', path.join(path.resolve(__dirname, '../config.json.example')))
.file('user', path.join(path.resolve(__dirname, '../config.json')));
.file('user', path.join(path.resolve(__dirname, './../../config.json')));
if (nconf.get('NODE_ENV') === "development")
Error.stackTraceLimit = Infinity;