gulpfile.js 314 B

1234567891011121314
  1. let gulp = require('gulp')
  2. let ftp = require('gulp-ftp')
  3. gulp.task('upload-ftp', function() {
  4. return gulp.src('./dist/**')
  5. .pipe(ftp({
  6. host: '192.168.0.11', // FTP主机地址
  7. user: 'files',
  8. pass: 'hw123',
  9. port: '21',
  10. remotePath: '/data/api' // FTP服务器位置
  11. }));
  12. });