Github gh-pages 服务
开启 gh-pages,基于 Node gh-pages。
gh-pages 介绍
Github 的免费服务,支持静态预览
Node gh-pages 可以快速部署预览页面
安装和配置
1 | npm install gh-pages |
配置 package.json,添加 homepage、scripts(注意修改 url)。
1 | "homepage": "https://mgzu.github.com/dawn-tools", |
幸运的话,你会遇到。
1 | fatal: could not read Username for 'https://github.com': No error |
我的解决方法是修改隐藏目录 .git 下的 config 文件。
1 | url = https://github.com/mgzu/dawn-tools.git |
Last updated: 2018-08-23
This blog is under a CC BY-NC-SA 4.0 International License
本文链接:http://mgzu.github.io/2018/05/08/Gh-pages/
v1.5.2