Answer the question
In order to leave comments, you need to log in
Gulp-rsync Error: spawn E2BIG?
Hello. Has anyone encountered a problem - when deploying with gulp-rsync, it gives an error "Error: spawn E2BIG". If I understand correctly, then the problem is in a large number of arguments in the path, since on smaller projects (with a smaller file tree) there is no such problem.
I would be grateful if anyone has a solution)
Answer the question
In order to leave comments, you need to log in
Task:
gulp.task('rsync, function() {
return gulp.src(['dist/core/**/*', '!dist/core/cache/**/*'])
.pipe(rsync( {
root: 'dist/core/',
hostname: '**** @ ***** .tech',
destination: '******/core/',
include: ['*.htaccess'] ,
exclude: ['**/Thumbs.db', '**/*.DS_Store'],
recursive: true,
archive: true,
silent: false,
compress: true
}))
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question