Skip to content

Commit

Permalink
changed maxBuffer for exec to 5MB
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianpraja committed Apr 28, 2020
1 parent d60bcb2 commit fc7f278
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fc7f278

Please sign in to comment.