Answer the question
In order to leave comments, you need to log in
How to upload modified files to the server?
What are the options for uploading modified files to the server in automatic mode?
Answer the question
In order to leave comments, you need to log in
It turned out to configure gulp-rsync
function uploadTask() {
return gulp.src('build/**')
.pipe(rsync({
root: 'build/',
hostname: '[email protected]',
destination: '/path/build',
exclude: ['**/Thumbs.db', '**/*.DS_Store'],
recursive: true,
archive: true,
silent: false,
compress: true,
update: true
}))
}
If rsync is given the --update
or parameter -u
, it will update only those that have changed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question