Merge pull request #7108 from meteor/laosb-fix-1469

Warn users when they meteor reset with MONGO_URL.
This commit is contained in:
Zoltan Olah
2016-05-25 18:03:31 -07:00

View File

@@ -1190,6 +1190,12 @@ main.registerCommand({
Console.command("meteor deploy appname"), Console.options({ indent: 2 }));
return 1;
}
if (process.env.MONGO_URL) {
Console.info("As a precaution, meteor reset only clears the local database that is " +
"provided by meteor run for development. The database specified with " +
"MONGO_URL will NOT be reset.");
}
// XXX detect the case where Meteor is running the app, but
// MONGO_URL was set, so we don't see a Mongo process