Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在Windows 7下利用chocolatey快速安装jekyll(无bundler) #3

Open
uolcano opened this issue Sep 5, 2016 · 0 comments
Open

Comments

@uolcano
Copy link
Owner

uolcano commented Sep 5, 2016

因为国内网络管制的问题,gem的源经常连不上,会出现各种问题,所以可以考虑使用这个方案。

安装

  1. 安装chocolatey,以管理员权限开启cmd/PowerShell

    @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
  2. 安装ruby,以管理员权限重启cmd/PowerShell

    choco install ruby -y # 自动安装ruby2.2.4
  3. 安装jekyll,管理员权限重启cmd/PowerShell

    gem install jekyll

至此,可以使用jekyll命令行:

jekyll new myblog
cd myblog
jekyll build # 生成页面文件
jekyll serve # 本地预览

参考链接


tags: Windows, chocolatey, jekyll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant