Tracked down a bug in a call to MongoDB that failed to ever return. It was trying to remove an index and the call never finished.
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
console.log("Checking Environment...");
|
||||
|
||||
if(!process.env.MONGO_URL) {
|
||||
console.log("Must provide the MONGO_URL environment variable point to the district central's main database. Should be of the format: `mongodb://localhost:27017/DatabaseName` or `mongodb://user_name:password@host.domain.com,host2.domain.com,host3.domain.com/DatabaseName?replicaSet=set_name`.")
|
||||
console.error("Must provide the MONGO_URL environment variable point to the district central's main database. Should be of the format: `mongodb://localhost:27017/DatabaseName` or `mongodb://user_name:password@host.domain.com,host2.domain.com,host3.domain.com/DatabaseName?replicaSet=set_name`.")
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
if(!process.env.MONGO_URL2) {
|
||||
console.log("Must provide the MONGO_URL2 environment variable pointing to the chromebook data collection dataset. Should be of the format: `mongodb://localhost:27017/DatabaseName` or `mongodb://user_name:password@host.domain.com,host2.domain.com,host3.domain.com/DatabaseName?replicaSet=set_name`.")
|
||||
console.error("Must provide the MONGO_URL2 environment variable pointing to the chromebook data collection dataset. Should be of the format: `mongodb://localhost:27017/DatabaseName` or `mongodb://user_name:password@host.domain.com,host2.domain.com,host3.domain.com/DatabaseName?replicaSet=set_name`.")
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
@@ -12,8 +14,8 @@ try {
|
||||
let settings = Assets.getText('settings.json');
|
||||
}
|
||||
catch(e) {
|
||||
console.log("Must have a /private/settings.json file with the following format:");
|
||||
console.log(`
|
||||
console.error("Must have a /private/settings.json file with the following format:");
|
||||
console.error(`
|
||||
{
|
||||
"google": {
|
||||
"clientId": "xxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com",
|
||||
@@ -29,4 +31,6 @@ catch(e) {
|
||||
|
||||
`);
|
||||
process.exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
console.log("Environment Checking Complete.")
|
||||
Reference in New Issue
Block a user