Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianpraja committed Nov 7, 2021
1 parent cc61012 commit e40000e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ Lambda.prototype.deploy = function( program ) {
var $zipCmd = "zip -r -9 " + tmpfile + ' ' + zipfileList

// 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 ) {
exec( $zipCmd, { maxBuffer: 1024 * 1024 * 5 /* 5MB */} ,function( err, stdout, stderr ) {
process.chdir($cwd)
if ( err ) {
console.log("Error generating zip file")
Expand Down

0 comments on commit e40000e

Please sign in to comment.