mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Remove Fibers from meteor-tools:
- Make "reset" command work.
This commit is contained in:
@@ -1459,7 +1459,7 @@ main.registerCommand({
|
||||
maxArgs: 1,
|
||||
requiresApp: true,
|
||||
catalogRefresh: new catalog.Refresh.Never()
|
||||
}, function (options) {
|
||||
}, async function (options) {
|
||||
if (options.args.length !== 0) {
|
||||
Console.error("meteor reset only affects the locally stored database.");
|
||||
Console.error();
|
||||
@@ -1481,7 +1481,7 @@ main.registerCommand({
|
||||
// XXX detect the case where Meteor is running the app, but
|
||||
// MONGO_URL was set, so we don't see a Mongo process
|
||||
var findMongoPort = require('../runners/run-mongo.js').findMongoPort;
|
||||
var isRunning = !! findMongoPort(files.pathJoin(options.appDir, ".meteor", "local", "db"));
|
||||
var isRunning = !! await findMongoPort(files.pathJoin(options.appDir, ".meteor", "local", "db"));
|
||||
if (isRunning) {
|
||||
Console.error("reset: Meteor is running.");
|
||||
Console.error();
|
||||
|
||||
@@ -352,7 +352,6 @@ if (process.platform === 'win32') {
|
||||
client.on('error', () => resolve(null));
|
||||
})
|
||||
.catch(() => null)
|
||||
.await();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user