mongodb-rest
Advanced tools
Comparing version 0.10.5 to 0.10.6
{ | ||
"name": "mongodb-rest", | ||
"description": "REST API Server for MongoDB", | ||
"version": "0.10.5", | ||
"version": "0.10.6", | ||
"author": "Ashley Davis <ashleydavis@insanefx.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -41,4 +41,7 @@ /* | ||
startServer: function (config) { | ||
var curDir = process.cwd(); | ||
console.log("Current directory: " + curDir); | ||
if (!config) { | ||
var configFilePath = path.join(process.cwd(), "config.json"); | ||
var configFilePath = path.join(curDir, "config.json"); | ||
if (fs.existsSync(configFilePath)) { | ||
@@ -50,2 +53,4 @@ console.log("Loading configuration from: " + configFilePath); | ||
console.log("Using default configuration."); | ||
console.log("Please put config.json in current directory to customize configuration."); | ||
config = defaultConfig; | ||
} | ||
@@ -52,0 +57,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56693
891