A
A
AIRStudio2019-06-13 17:08:19
rsync
AIRStudio, 2019-06-13 17:08:19

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

1 answer(s)
A
AIRStudio, 2019-06-13
@AIRStudio

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 question

Ask a Question

731 491 924 answers to any question