Answer the question
In order to leave comments, you need to log in
How to deploy a Gulp project to Github using rsync task?
I'm not versed in node.js and other coding issues. I have a Gulp project with an rsync task that looks like this:
gulp.task('rsync', function() {
return gulp.src('app/**')
.pipe(rsync({
root: 'app/',
hostname: '[email protected]',
destination: 'yousite/public_html/',
// include: ['*.htaccess'], // Includes files to deploy
exclude: ['**/Thumbs.db', '**/*.DS_Store'], // Excludes files from deploy
recursive: true,
archive: true,
silent: false,
compress: true
}))
});
Answer the question
In order to leave comments, you need to log in
Screwing a nail with a screwdriver can and will work, but why not take a specialized tool?
https://www.npmjs.com/package/gulp-git
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question