Skip to content

Instantly share code, notes, and snippets.

@Margino
Last active July 1, 2018 14:29
Show Gist options
  • Select an option

  • Save Margino/544dab3386638e64d17571e0ff29e809 to your computer and use it in GitHub Desktop.

Select an option

Save Margino/544dab3386638e64d17571e0ff29e809 to your computer and use it in GitHub Desktop.
Config for ssh deploy
// https://www.npmjs.com/package/gulp-rsync
// npm i -D gulp-rsync
const rsync = require('gulp-rsync');
gulp.task('deploy', function() {
return gulp.src('prodaction/**')
.pipe(rsync({
root: 'prodaction/',
hostname: 'name@name…tech',
destination: 'project/public_html/file/',
archive: true,
silent: false,
compress: true
}));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment