开始本文前,你需要安装好NodeJS支持:

从GITHUB下载部署脚本:
https://github.com/zitiaocn/deploy

进入项目目录,并安装依赖环境:
注意:这里为了避免npm从境外源下载速度过慢,可以先注册到国内的源

安装Git Book:

下载material-design版本的字条wiki:

编译文件:

运行:

访问:http://10.158.1.173:4000/

如果想要改变运行端口,或者同一个服务器上启动多个GITBOOK,可以这样:
lsos | grep 35729
gitbook –port 4001 –lrport 35730 serve

——————————————————————
Done

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

隐藏
变装