diff --git a/lib/main.js b/lib/main.js index 22301c0..bf4e077 100644 --- a/lib/main.js +++ b/lib/main.js @@ -189,7 +189,9 @@ Lambda.prototype.deploy = function( program ) { var $zipCmd = "zip -r -9 " + tmpfile + ' ' + zipfileList - exec( $zipCmd, { maxBuffer: 1024 * 1024 } ,function( err, stdout, stderr ) { + // maxBuffer specifies the largest amount of data allowed on stdout or stderr - if this value is exceeded then the child process is killed. + // changing default 200KB to 5MB + exec( $zipCmd, { maxBuffer: 1024 * 1024 * 5 } ,function( err, stdout, stderr ) { process.chdir($cwd) if ( err ) { console.log("Error generating zip file")