Closed mmukhin closed 9 years ago
In ssh_deploy.js there's a default for the max buffer that is set to 200 * 1024
. I've had the same issue, I usually just change 200 to 600 and it runs fine.
I haven't tried it but you also should be able to put the max_buffer: 600 * 1024
in your ssh-deploy environment options.
It doesn't have to be 600, it just needs more space than what it currently has.
Thanks for the quick reply, although even max_buffer: 60000 * 1024 does not help
https://github.com/dasuchin/grunt-ssh-deploy/pull/48
This fixes my issue, with default max_buffer
Thanks @NOtherDev
Could you guys pls accept the PR
Awesome library. I'm trying to deploy to 2 servers, behind an ELB. Since I cannot add an array of hosts to 1 environment, I have to make 2 environments (e.g. prod1, prod2), and combine them into 1 "deploy-prod" task. Unfortunately, I get a "Maximum call stack size exceeded". Running grunt with --verbose, everything looks clean.
Does not work:
grunt.registerTask('deploy-prod', ['default', 'ssh_deploy:prod1', 'ssh_deploy:prod2']);
(1) Would be great to allow an array of hosts or (2) Would be great to fix the Max call stack size exceeded if deploying multiple environments