少于 1 分钟阅读 次阅读

什么是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}

步骤

  1. 安装RubyInstaller后,会提示安装MSYS2 and MINGW development tool chain
  2. 使用这个仓库模板,命名为{github名}.github.io Use this template
  3. 在本地克隆这个仓库
  4. 在本地仓库下,cmd执行
     bundle install
     bundle exec jekyll serve
    
  5. 如果要使用自己的域名,先配置好DNS指向(CNAME),然后在github仓库上,setting -> Page -> CNAME里面添加自己的域名

问题解决

  1. 如果遇到错误bind': Permission denied - bind(2) for 127.0.0.1:4000 (Errno::EACCES) 多换几个端口尝试
     bundle exec jekyll serve --port 4003
    
  2. 如果遇到错误 Gem::Ext::BuildError: ERROR: Failed to build gem native extension error occurred while installing wdm (0.1.0), and Bundler cannot continue

    尝试修改本地文件Gemfile为这一行 gem "wdm", "~> 0.2.0" if Gem.win_platform?

标签:

分类:

更新时间:

留下评论