#2893 increment --debug-brk port value when forking js-minifier child process

v1.18.x
EvSpirit 10 years ago
parent f928b87997
commit 3bd2f53056

@ -129,7 +129,12 @@ module.exports = function(Meta) {
Meta.js.minify = function(minify, callback) { Meta.js.minify = function(minify, callback) {
if (nconf.get('isPrimary') === 'true') { if (nconf.get('isPrimary') === 'true') {
var minifier = Meta.js.minifierProc = fork('minifier.js'), var forkProcessParams = {};
if(global.v8debug) {
forkProcessParams = {execArgv: ['--debug-brk=' + (global.process.debugPort + 1)]};
}
var minifier = Meta.js.minifierProc = fork('minifier.js', [], forkProcessParams),
onComplete = function(err) { onComplete = function(err) {
if (err) { if (err) {
winston.error('[meta/js] Minification failed: ' + err.message); winston.error('[meta/js] Minification failed: ' + err.message);

Loading…
Cancel
Save