diff --git a/tools/cli/commands.js b/tools/cli/commands.js index 754e9b4535..6f75da283d 100644 --- a/tools/cli/commands.js +++ b/tools/cli/commands.js @@ -256,6 +256,7 @@ var runCommandOptions = { 'mobile-port': { type: String }, 'app-port': { type: String }, 'debug-port': { type: String }, + 'no-release-check': { type: Boolean }, production: { type: Boolean }, 'raw-logs': { type: Boolean }, settings: { type: String }, @@ -374,6 +375,7 @@ function doRunCommand(options) { oplogUrl: process.env.MONGO_OPLOG_URL, mobileServerUrl: utils.formatUrl(parsedMobileServerUrl), once: options.once, + noReleaseCheck: options['no-release-check'] || process.env.METEOR_NO_RELEASE_CHECK, cordovaRunner: cordovaRunner }); } diff --git a/tools/cli/help.txt b/tools/cli/help.txt index e8c942aa79..c402e8db51 100644 --- a/tools/cli/help.txt +++ b/tools/cli/help.txt @@ -58,6 +58,7 @@ Options: --release Specify the release of Meteor to use. --verbose Print all output from builds logs. --no-lint Don't run linters used by the app on every rebuild. + --no-release-check Don't run the release updater to check for new releases. --allow-incompatible-update Allow packages in your project to be upgraded or downgraded to versions that are potentially incompatible with the current versions, if required to satisfy all package diff --git a/tools/runners/run-all.js b/tools/runners/run-all.js index a49500a7f8..da225fe8c6 100644 --- a/tools/runners/run-all.js +++ b/tools/runners/run-all.js @@ -31,6 +31,7 @@ class Runner { rootUrl, selenium, seleniumBrowser, + noReleaseCheck, ...optionsForAppRunner }) { const self = this; @@ -46,6 +47,7 @@ class Runner { self.regenerateAppPort(); self.stopped = false; + self.noReleaseCheck = noReleaseCheck; self.quiet = quiet; self.banner = banner || files.convertToOSPath( files.prettyPath(self.projectContext.projectDir) @@ -125,7 +127,7 @@ class Runner { var unblockAppRunner = self.appRunner.makeBeforeStartPromise(); self._startMongoAsync().then(unblockAppRunner); - if (! self.stopped) { + if (!self.noReleaseCheck && ! self.stopped) { self.updater.start(); }