2013-12-23 57 views
2

有點有線,我試圖安裝octopress,一切都很順利,但我不能使用rake preview。有一些信息,當我試圖查看預覽:Octopress運行耙預覽失敗

服務器似乎沒有問題:

bash-3.2$ rake preview 
Starting to watch source with Jekyll and Compass. Starting Rack on port 4000 
Configuration from /Users/Gizak/Documents/oct/_config.yml 
[2013-12-23 16:12:21] INFO WEBrick 1.3.1 
[2013-12-23 16:12:21] INFO ruby 2.0.0 (2013-06-27) [universal.x86_64-darwin13] 
[2013-12-23 16:12:21] INFO WEBrick::HTTPServer#start: pid=5525 port=4000 
Auto-regenerating enabled: source -> public 
[2013-12-23 16:12:22] regeneration: 93 files changed 
>>> Change detected at 16:12:22 to: screen.scss 
identical public/stylesheets/screen.css 

Dear developers making use of FSSM in your projects, 
FSSM is essentially dead at this point. Further development will 
be taking place in the new shared guard/listen project. Please 
let us know if you need help transitioning! ^_^b 
- Travis Tilley 

>>> Compass is watching for changes. Press Ctrl-C to Stop. 
127.0.0.1 - - [23/Dec/2013 16:12:25] "GET/HTTP/1.1" 200 - 0.0245 
127.0.0.1 - - [23/Dec/2013 16:12:25] "GET /stylesheets/screen.css HTTP/1.1" 200 - 0.0028 
127.0.0.1 - - [23/Dec/2013 16:12:25] "GET /javascripts/modernizr-2.0.js HTTP/1.1" 200 - 0.0012 

你可以看到響應代碼是200,但是當我看着瀏覽器,我發現它只是沒有完成它的工作: OSX 10.9, Safari

我從來沒有看到過這種錯誤。我嚴格按照章魚的說明安裝它。我錯過了什麼?

SYS INFO: OSX 10.9 Safari瀏覽器

回答

6

我覺得這是Safari瀏覽器基於this issue on Github一個已知的問題。在該問題上列出的兩個建議的解決方法是:

  1. 嘗試從Firefox或Chrome瀏覽器登錄http://localhost:4000

  2. 安裝並使用Ruby Thin Server而不是默認的WEBrick服務器。在this blog post中可以找到一套很好的更改說明。