插件安装方式

This commit is contained in:
yangyu 2018-07-21 11:11:19 +08:00
parent 385148c548
commit 5a3c387dbc

View File

@ -21,3 +21,15 @@ docker run -d \
> http://<用户名>:< token >@<仓库地址>
## 自动部署
发布文章只需要将文章提交到对应的仓库docker 容器自动更新文章内容
## 插件安装
请在git仓库根目录创建install.sh,创建容器时自动安装
```bash
#!/bin/bash
npm install hexo-renderer-jade@0.3.0 --save
npm install hexo-renderer-stylus --save
npm install hexo-generator-feed --save
npm install hexo-generator-sitemap --save
npm install hexo-generator-baidu-sitemap --save
npm install hexo-generator-json-content@2.2.0 --save
```