Skip to content

Very slow #98

@dustball

Description

@dustball

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions