搭建个人博客

ruby更新好之后,

    1. 开心地安了 jekyll
sudo gem install jekyll
    1. 到 wenyuanma.github.io 目录下
bundle install

报错 Could not locate Gemfile
执行 jekyll new . --force
然后再执行 bundle install

    1. 启动 server bundle exec jekyll serve 显示
Configuration file: /Users/mawenyuan/Documents/learn/githublearn/wenyuanma.github.io/_config.yml
            Source: /Users/mawenyuan/Documents/learn/githublearn/wenyuanma.github.io
       Destination: /Users/mawenyuan/Documents/learn/githublearn/wenyuanma.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
                    done in 0.552 seconds.
 Auto-regeneration: enabled for '/Users/mawenyuan/Documents/learn/githublearn/wenyuanma.github.io'
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.

在浏览器中输入 http://127.0.0.1:4000/ 个人页面在本地就起来了。

你可能感兴趣的