-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
I got this working, but:
- it runs very slow
- it copies one file at a time
- 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
Metadata
Metadata
Assignees
Labels
No labels