Use consistent require filename within function

This commit is contained in:
David Glasser
2014-02-03 17:16:52 -08:00
parent 20860eb8f6
commit 55928eae0a

View File

@@ -682,7 +682,7 @@ main.registerCommand({
if (options.args.length === 0) {
// localhost mode
var findMongoPort =
require(path.join(__dirname, 'run-mongo.js')).findMongoPort;
require('./run-mongo.js').findMongoPort;
var mongoPort = findMongoPort(options.appDir);
// XXX detect the case where Meteor is running, but MONGO_URL was