From 32cbbb8af5ecefafda8738494e1750ac9f95cd17 Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Sat, 19 Dec 2015 15:23:28 +0100 Subject: [PATCH] Disable raygun for localdev --- server.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/server.js b/server.js index 090f1015..eb3d75dc 100755 --- a/server.js +++ b/server.js @@ -32,8 +32,10 @@ var shortcuts = { shortcuts.localdev = shortcuts.onlinedev.concat([ "-s", "beta", "--ide.packed", "false", - "--ide.cdn", "false", "--homepage.cdn", "false", - "--force-sudo", + "--ide.cdn", "false", + "--ide.forceDev", "true", + "--homepage.cdn", "false", + "--helpWithSudo", "--api.port", "8281", "--infra_port", "8282", "--api_url", "http://127.0.0.1:8281", @@ -105,9 +107,9 @@ function main(argv, config, onLoaded) { var delayed = expanded.filter(function(c) { return delayLoadConfigs.indexOf(c) !== -1 }); var notDelayed = expanded.filter(function(c) { return delayLoadConfigs.indexOf(c) === -1 }); - if (options.argv["force-sudo"]) + if (options.helpWithSudo) return child_process.execFile("sudo", ["echo -n"], main.bind(null, argv.filter(function(a) { - return a !== "--force-sudo"; + return a !== "--helpWithSudo"; }), config, onLoaded)); startConfigs(notDelayed, function() {