有人试过用 GitLab Pages 部署 hexo 博客吗?
本文介绍了有人试过用 GitLab Pages 部署 hexo 博客吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
前几天看到 这些年,我们知道的那些 pages 平台 这篇文章中提到 GitLab Pages 原生支持 hexo.(还有 Hugo 、 Middleman 、 Brunch 、 Metalsmith 、 Harp 等)
其中 GitLab Documentation 写着
Find out the general domain name that is used for GitLab Pages (ask your administrator). This is very important, so you should first make sure you get that right.
Create a project
Push a .gitlab-ci.yml file in the root directory of your repository with a specific job named pages
Set up a GitLab Runner to build your website
想尝尝鲜,但是还是不知道怎么去部署。是像原来 GitHub 那样用 hexo deploy 上去(显示404 page not found
)还是把博客文件 commit 到 GitLab 中让他跑 Runner 构建?求指点~
解决方案
这篇关于有人试过用 GitLab Pages 部署 hexo 博客吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文