Jekyll build stuck in "Rebuilding index…" stage

时间:2015-05-04 19:58:41

标签: shell server jekyll

I've just built my first Jekyll website, and (almost) everything was going fine, until I added a few (around 80) old posts from my previous website.

Now, when I try to run Jekyll to serve the website locally, it starts, but stay stuck in the Rebuilding index… stage:

$ ./_serve.sh
WARN: Unresolved specs during Gem::Specification.reset:
      posix-spawn (~> 0.3.6)
      listen (~> 2.7)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Configuration file: _config.yml
Configuration file: _config-twitter.yml
            Source: /Users/nhoizey/Dropbox/Personnel/Devs/nicolas-hoizey.com
       Destination: /Users/nhoizey/Dropbox/Personnel/Devs/nicolas-hoizey.com/_site
      Generating... 

  Populating LSI... 
Rebuilding index... 

The _serve.sh I run here is just this:

#!/bin/sh
jekyll s --config _config.yml,_config-twitter.yml

(_config-twitter.yml contains only my Twitter API credentials I don't want to share)

The whole site source and content is in my Github repo: https://github.com/nhoizey/nicolas-hoizey.com/

Google didn't help at all, nor did Stackoverflow yet, any idea?

2 个答案:

答案 0 :(得分:1)

我测试了你的网站,一切似乎都在运行时发现:   - 禁用twitter标签:p   - 在_config.yml中禁用LSI

当网站正在构建I Ctrl-C以查看正在运行的内容时,我得到以下堆栈:

Rebuilding index... ^C/Users/johan/.rbenv/versions/2.1.2/lib/ruby/2.1.0/matrix.rb:315:in `[]': Interrupt
    from /Users/johan/.rbenv/versions/2.1.2/lib/ruby/2.1.0/matrix.rb:823:in `block (3 levels) in *'
    …
    from /Users/johan/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/classifier-reborn-2.0.3/lib/classifier-reborn/extensions/vector.rb:43:in `block (2 levels) in SV_decomp'
    …
    from /Users/johan/.rbenv/versions/2.1.2/bin/jekyll:23:in `<main>'

我终于在插件gems-classifier上找到了Github上的this issue,用于生成与LSI的相关链接。

我猜你最好的选择是禁用LSI ......

答案 1 :(得分:1)

我自己遇到过这个问题,但found a better solution

安装gsi并使用rb-gsl gem 显着为我加速LSI(约6秒)