Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

gulp-deploy-ssh

1.0.0 • Public • Published

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'))
})

License

GPL-3.0

Install

npm i gulp-deploy-ssh

DownloadsWeekly Downloads

2

Version

1.0.0

License

GPL-3.0

Last publish

Collaborators

  • avatar