2014-06-08 62 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

相關問題