Comparing version 0.7.20-179 to 0.7.21-180
@@ -63,2 +63,12 @@ "use strict"; | ||
}, | ||
debug: { | ||
required: false, | ||
val: false, | ||
type: "boolean" | ||
}, | ||
debugBrk: { | ||
required: false, | ||
val: false, | ||
type: "boolean" | ||
}, | ||
redisHost: { | ||
@@ -158,7 +168,7 @@ required: true, | ||
exec_process.stdout.on('data', function (data) { | ||
log.silly('stdout: ' + data); | ||
console.log('CLOUD stdout: ' + data); | ||
}); | ||
exec_process.stderr.on('data', function (data) { | ||
log.silly('stderr: ' + data); | ||
console.log('CLOUD stderr: ' + data); | ||
last_error_output = data; | ||
@@ -248,3 +258,12 @@ }); | ||
} | ||
exec_cmd('node', ['./cloud/application.js'], process.cwd(), appEnvironment, function (err, code) { | ||
var node_args = []; | ||
if (argObj.debugBrk) { | ||
node_args.push("--debug-brk"); | ||
console.log("Starting cloud code with debug enabled, you will need to connect a debugger"); | ||
} else if (argObj.debug) { | ||
node_args.push("--debug"); | ||
console.log("Starting cloud code with debug enabled, you may connect a debugger"); | ||
} | ||
node_args.push('./cloud/application.js'); | ||
exec_cmd('node', node_args, process.cwd(), appEnvironment, function (err, code) { | ||
log.error('cloud application exitted.'); | ||
@@ -251,0 +270,0 @@ if(clientServer) { |
@@ -5,3 +5,3 @@ { | ||
"keywords" : [ "cli", "feedhenry" ], | ||
"version": "0.7.20-179", | ||
"version": "0.7.21-180", | ||
"preferGlobal" : true, | ||
@@ -8,0 +8,0 @@ "homepage" : "http://git.io/fh-fhc", |
@@ -1,1 +0,1 @@ | ||
0.7.20-179 | ||
0.7.21-180 |
Sorry, the diff of this file is not supported yet
371771
9575