Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very slow #98

Open
dustball opened this issue May 27, 2019 · 1 comment
Open

Very slow #98

dustball opened this issue May 27, 2019 · 1 comment

Comments

@dustball
Copy link

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
Copy link

Agree! Needs some options for parallel uploading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants