Answer the question
In order to leave comments, you need to log in
Setting up gulp-rsync, how to sync all files in a project?
Hello,
Earlier I set up single folder sync:
function uploadTask() {
return gulp.src('build/**')
.pipe(rsync({
root: 'build/',
hostname: '[email protected]',
destination: '/home/blahblah/public_html/wp-content/themes/online/build',
exclude: ['**/Thumbs.db', '**/*.DS_Store'],
recursive: true,
archive: true,
silent: false,
compress: true,
update: true
}))
}
function uploadTask() {
return gulp.src('/**')
.pipe(rsync({
root: '/',
hostname: '[email protected]',
destination: '/home/blahblah/public_html/wp-content/themes/online',
}))
}
function uploadTask() {
return gulp.src('./**')
.pipe(rsync({
root: './',
hostname: '[email protected]',
destination: '/home/blahblah/public_html/wp-content/themes/online',
}))
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question