jerrysu / gulp-rsync

Gulp plugin for deploying files via rsync
119 stars 51 forks source link

exclude not work #39

Open andysongsca opened 8 years ago

andysongsca commented 8 years ago

gulp.task('syncToServer', function() { return gulp.src(uploadDir) .pipe(rsync({ root: uploadDir, username: 'web_server', hostname: 'yun-s28.zw', destination: '/data/web_server', recursive: true, exclude: [uploadDir + '/build', uploadDir + '/node_modules'] })); }); ,when i run 'gulp syncToServer' ,the directories in ‘exclude’ is still sync to my server.is there something wrong?