Last active
July 1, 2018 14:29
-
-
Save Margino/544dab3386638e64d17571e0ff29e809 to your computer and use it in GitHub Desktop.
Config for ssh deploy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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