Skip to content

Commit 6f0ee07

Browse files
committed
rsync
1 parent a32c238 commit 6f0ee07

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

gulpfile.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ gulp.task('deploy', function() {
108108

109109
});
110110

111+
gulp.task('rsync', function() {
112+
return gulp.src('dist/**')
113+
.pipe(rsync({
114+
root: 'dist/',
115+
hostname: '[email protected]',
116+
destination: 'yousite/public_html/',
117+
archive: true,
118+
silent: false,
119+
compress: true
120+
}));
121+
});
122+
111123
gulp.task('removedist', function() { return del.sync('dist'); });
112124
gulp.task('clearcache', function () { return cache.clearAll(); });
113125

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"gulp-imagemin": "^3.2.0",
2020
"gulp-notify": "^3.0.0",
2121
"gulp-rename": "^1.2.2",
22+
"gulp-rsync": "0.0.8",
2223
"gulp-sass": "^3.1.0",
2324
"gulp-uglify": "^2.1.2",
2425
"gulp-util": "^3.0.8",

0 commit comments

Comments
 (0)