mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge pull request #7108 from meteor/laosb-fix-1469
Warn users when they meteor reset with MONGO_URL.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user