teambition / gulp-ssh

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

Very slow #98

Open dustball opened 5 years ago

dustball commented 5 years ago

I got this working, but:

1) it runs very slow 2) it copies one file at a time 3) it copies files that don't need to be updated

Runtime for a tiny site (60 files) was 28 seconds.

I replaced it with this:

gulp.task('deploy', function (cb) { exec('rsync -r -a -v -e ssh dist/ xyz@xyz.com:/home/xyz/xyz.com', function (err, stdout, stderr) { console.log(stdout); console.log(stderr); cb(err); }); })

And it runs between 1.63 and 12 seconds, depending if there are no updates, or all files updated.

dan-merlea commented 2 years ago

Agree! Needs some options for parallel uploading