Post

运行Jekyll本地服务器

仅供参考

下载并安装Ruby+Devkit的x64版本,安装完成后重启终端检查:

1
ruby -v

注意检查c:/users/your_name/appdata/local/microsoft/windowsapps是否在系统变量中

终端输入:

1
gem install bundler jekyll

检查:

1
jekyll -v
1
bundle -v

进入你项目所在路径,安装依赖:

1
bundle install

提示:身处中国大陆可能需要更换镜像源:

1
bundle config mirror.https://rubygems.org https://gems.ruby-china.com

使用命令启动本地服务器

1
bundle exec jekyll serve

在浏览器中打开:

1
http://127.0.0.1:4000/
This post is licensed under CC BY 4.0 by the author.