Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var gulp = require('gulp');
- var gutil = require('gulp-util');
- // get it with 'npm install --save-dev gulp-ftp'
- var ftp = require('gulp-ftp');
- // deploy task
- gulp.task('deploy', function () {
- return gulp.src(['index.html', 'css/*', 'vendor/**', 'img/**'], {base: '.'}) // omit and add whatever is needed
- .pipe(ftp({
- host: 'host.tdl',
- user: 'username',
- pass: 'password',
- remotePath: '/path/',
- }))
- .pipe(gutil.noop());
- });
Add Comment
Please, Sign In to add comment