Comparing version 0.2.4 to 0.2.5
@@ -6,3 +6,3 @@ { | ||
"keywords": ["framework", "api", "web", "mvc", "extensible", "micro", "connect"], | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"homepage": "http://github.com/antz29/node-base", | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -37,5 +37,7 @@ module.exports = (function() { | ||
var root = path.resolve(path.dirname(process.argv[1])); | ||
console.log("Initializing Base..."); | ||
options = _.defaults(opt,{ | ||
'root' : path.resolve(path.dirname(process.argv[0])), | ||
'root' : root, | ||
'config' : '/config', | ||
@@ -47,5 +49,5 @@ 'controllers' : '/controllers', | ||
console.log("Loading the configuration in " + options.root + options.config); | ||
configr.setDirectory(options.root + options.config); | ||
console.log("Loading the configuration in " + options.root + options.config); | ||
configr.load(function() { | ||
@@ -52,0 +54,0 @@ twister.addRules(configr.get().routes || []); |
9706
207