51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

Hexo 双管齐下式部署

其实就是同时部署到自己的服务器和Github Pages(
首先,确保单独部署到 Github Pages 或自己服务器是正常的,如果没有可以参考以下链接:

这是一个内部链接,保证安全(?)
macOS环境下部署hexo并应用Butterfly主题
r1n.top

这是一个外部链接,不能保证安全性。
使用 Hexo 搭建个人博客并部署到云服务器
www.cnblogs.com

接着打开 _config.yml 修改deploy:

|-----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------| | 1 2 3 4 5 6 7 | deploy: - type: git repository: git@<ip>:<dict> branch: master - type: git repository: git@github.com:<name>/<name>.github.io.git branch: main |

执行 hexo d 就完成了。

赞(2)
未经允许不得转载:工具盒子 » Hexo 双管齐下式部署