Jekyll使用


安装

gem install bundler jekyll

更换国内镜像源

修改 Rubygems 默认源

gem sources  #列出默认源
gem sources --remove https://rubygems.org/  #移除默认源
gem sources -a https://mirrors.ustc.edu.cn/rubygems/  #添加科大源

针对使用 Gemfile 和 Bundle 的项目

bundle config mirror.https://rubygems.org https://mirrors.ustc.edu.cn/rubygems/

常用命令

# 后台运行
nohup jekyll s --host=0.0.0.0 > jekyll.log 2>&1 &

# 启动服务
jekyll s

# 修改立即可见
jekyll s --watch

# 新建项目
jekyll new new_project_name

参考

, ,

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注