2014-06-08 63 views
2

我想在--watch模式在Windows 7上运行服务器杰基尔但它无法启动,并抛出一个错误信息:无法启动杰基尔服务器--watch模式在Windows 7

blog [ master ] > jekyll server --trace --watch 
Configuration file: C:/vraa/repo/blog/_config.yml 
      Source: C:/vraa/repo/blog 
     Destination: C:/vraa/repo/blog/_site 
     Generating... 
        done. 
C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-2.7.7/lib/listen/adapter/windows.rb:21:in `rescue in usable?': undefined method `_log' for Listen::Adapter::Windows:Class (NoMethodError) 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-2.7.7/lib/listen/adapter/windows.rb:17:in `usable?' 

建立jekyll站点并启动服务器成功时,--watch模式是失败的模式。

任何想法?

我在Windows 7 64位中使用Jekyll版本2.0.03,我的ruby版本是1.9.3。

回答

2

目前已在哲基尔的较新版本的一些变化(V 1.0+)。 --server命令现在已过时。要以计时模式的服务器上,键入以下内容:

jekyll serve --watch 

此外,运行以下命令以更新您听红宝石宝石2.7.8(6月12日发布的2014年),其中有您修正:

gem update listen 

这应该让你运行。

1

找出问题所在。这是'听'红宝石宝石版本,导致jekyll从--watch模式启动。将'听'宝石恢复到旧版本,然后服务器启动正常(虽然,警告但不是showstopper)。

gem uninstall listen --version 2.7.7 
gem install listen --version 2.6.0 
2

更新你的 '听' 宝石2.7.8

相关问题