Guest User

Untitled

a guest
Dec 26th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. gulp.task('ftp-deploy', function() {
  2.  
  3. var conn = ftp.create({
  4. host: 'ftps.mysite.com',
  5. port: 21,
  6. user: 'me@mysite.com',
  7. password: 'mypassword123',
  8. parallel: 10,
  9. log: gutil.log,
  10. });
  11.  
  12. var localFilesGlob = ['css-dist/**'];
  13.  
  14. return gulp.src(localFilesGlob, { base: './css-dist/', buffer: false })
  15. .pipe( conn.newer( '/css' ) )
  16. .pipe( conn.dest( '/css' ) )
  17. ;
  18.  
  19. });
Add Comment
Please, Sign In to add comment