Open andysongsca opened 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?
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?