jekyll minimal-mistakes github Page 建站
什么是Jekyll、Ruby、RubyGems、Bundle、Minimal Mistakes 和 GitHub Pages?
什么是Jekyll、Ruby、RubyGems、Bundle、Minimal Mistakes 和 GitHub Pages
环境
Windows 10
参考链接
Minimal Mistakes Quick-Start Guide Jekyll Themes Jekyll on Windows 使用Jekyll + GitHub Pages搭建个人博客 使用 Jekyll 创建 GitHub Pages 站点 Jekyll Minimal Mistakes 实战配置 在 Mac 上安装 Jekyll 在GitHub Pages上部署Jekyll静态博客 [Bug]: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.{Installing wdm 0.1.1 with native extensions}
步骤
- 安装RubyInstaller后,会提示安装
MSYS2 and MINGW development tool chain - 使用这个仓库模板,命名为
{github名}.github.ioUse this template - 在本地克隆这个仓库
- 在本地仓库下,cmd执行
bundle install bundle exec jekyll serve - 如果要使用自己的域名,先配置好DNS指向(CNAME),然后在github仓库上,setting -> Page -> CNAME里面添加自己的域名
问题解决
- 如果遇到错误
bind': Permission denied - bind(2) for 127.0.0.1:4000 (Errno::EACCES)多换几个端口尝试bundle exec jekyll serve --port 4003 -
如果遇到错误
Gem::Ext::BuildError: ERROR: Failed to build gem native extensionerror occurred while installing wdm (0.1.0), and Bundler cannot continue尝试修改本地文件
Gemfile为这一行gem "wdm", "~> 0.2.0" if Gem.win_platform?
留下评论