Hexo 上的七牛云部署器。
npm install hexo-deployer-qiniucloud2 --save-
注册并登录七牛云
-
新建存储空间
-
编辑
_config.yml文件deploy: type: qiniu accessKey: <accessKey> secretKey: <secretKey> # 华东: Zone_z0, 华北: Zone_z1, 华南: Zone_z2, 北美: Zone_na0, 东南亚: Zone_as0 zone: <zone> # the name of bucket scope: <scope> # example http://www.a.com/,http://www.b.cn/ dirsToRefresh: <dirsToRefresh> # default is 3600 expires: [expires] # default is true cover: [true|false] # default is false refreshCdn: [true|false]
-
部署
hexo deploy
-
绑定域名。
MIT