Advertisement
Guest User

Untitled

a guest
Jul 14th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. //Gulp APP ftp deploy
  2. gulp.task('deploy-app', function () {
  3.  
  4. var conn = ftp.create({
  5. host: 'xxx',
  6. user: 'xxx',
  7. password: 'xxx',
  8. parallel: 10,
  9. log: gutil.log
  10. });
  11.  
  12. var globs = [
  13. './css/**/*{css,png,jpg,gif,ttf,woff,eof,svg,woff2}',
  14. './img/**',
  15. './views/**',
  16. './scripts/**',
  17. 'index.html',
  18. 'Web.config'
  19. ];
  20.  
  21. // using base = '.' will transfer everything to /public_html correctly
  22. // turn off buffering in gulp.src for best performance
  23.  
  24. return gulp.src(globs, { base: '.', buffer: false })
  25. .pipe(conn.newer('/site/wwwroot')) // only upload newer files
  26. .pipe(conn.dest('/site/wwwroot'));
  27.  
  28. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement