gulp-deploy-ssh
v1.0.0
Published
Gulp plugin to deploy files using SSH with password prompt
Downloads
3
Maintainers
Readme
gulp-deploy-ssh
Gulp plugin to deploy files using SSH with password prompt
Install
npm install --save-dev gulp-deploy-ssh
Usage
var gulp = require('gulp')
var deploy = require('gulp-deploy-ssh')
// prompt for SSH credentials
gulp.task('login:production', deploy.login('example.com'))
// deploy files to SSH host
// IMPORTANT: Don't forget to add login task as dependency
gulp.task('deploy:production', ['login:production'], function () {
return gulp.src('www/**/*').pipe(deploy['example.com'].dest('/var/www'))
})
// add as many hosts as needed
gulp.task('login:test', deploy.login('test.example.com'))
gulp.task('deploy:test', ['login:test'], function () {
return gulp.src('www/**/*').pipe(deploy['test.example.com'].dest('/var/www'))
})