搭建 hexo,在执行 hexo deploy 后,出现 error deployer not found:github 的错误

hexo 更新到3.0以后,deploy的type 的github须要改为githtml

改了以后执行npm install hexo-deployer-git --savegit

而后再部署试试github

 


官网说明: https://hexo.io/zh-cn/docs/deployment.htmlweb

 

 

部署Hexo 提供了快速方便的一键部署功能,让您只需一条命令就能将网站部署到服务器上。npm

$ hexo deploy

在开始以前,您必须先在 _config.yml 中修改参数,一个正确的部署配置中至少要有 type 参数,例如:服务器

deploy:
  type: git

 您可同时使用多个 deployer,Hexo 会依照顺序执行每一个 deployer。hexo

deploy:
- type: git
  repo:
- type: heroku
  repo:

 

Git

安装 hexo-deployer-git网站

$ npm install hexo-deployer-git --save

 修改配置。url

deploy:
  type: git
  repo: <repository url>
  branch: [branch]
  message: [message]

 

参数 描述
repo 库(Repository)地址
branch 分支名称。若是您使用的是 GitHub 或 GitCafe 的话,程序会尝试自动检测。
message 自定义提交信息 (默认为 Site updated: {{ now("YYYY-MM-DD HH:mm:ss") }})
相关文章
相关标签/搜索