阅读(2346) (34)

FTP 发布部署

2016-11-15 16:52:05 更新

tmt-workflow 支持将编译后的文件部署上 FTP,只需如下配置:

//ftp 配置
  "ftp": {
    "host": "xx.xx.xx.xx",
    "port": "8021",
    "user": "tmt",
    "pass": "password",
    "remotePath": "remotePath", //默认上传到根目录下,配置此属性可指定具体子目录
    "includeHtml": true  //ftp 上传是否包含 html
  }

执行 gulp ftp 即可。