teambition / gulp-ssh

SSH and SFTP tasks for gulp
184 stars 38 forks source link

Only transfer files that are timestamped as newer? #37

Closed kmh3785 closed 8 years ago

kmh3785 commented 8 years ago

I'm trying to use gulp-ssh in conjunction with gulp-newer to only transfer files that are stamped as newer than the last transfer. Am I missing something here? This block transfers everything, not just updated files.

gulp.task('deploy-prod', function () { return gulp.src(['./'+build_dir+'wp-content/*/']) .pipe(newer(prod_content_dir+'*/')) .pipe(gulpSSH.dest(prod_content_dir)) });

zensh commented 8 years ago

How do gulp-newer detect remote file?