2013-07-04 24 views
6

我在我的機器上安裝了ruby 1.9.3版本併爲我的個人網站開發了一個八項目項目。Rake Preview不能在Octopress中工作

我用我的寶石rvm並遵循octopress.org記錄的所有步驟。但是我在耙機服務器中發現了一些錯誤。這是我的命令日誌。

Tin-Aung-Linn:octopress tal$ ruby --version 
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0] 
Tin-Aung-Linn:octopress tal$ rake generate 
## Generating Site with Jekyll 
identical source/stylesheets/screen.css 
Configuration from /Users/tal/Sites/mysite.com/octopress/_config.yml 
Building site: source -> public/github 
Successfully generated site: source -> public/github 
Tin-Aung-Linn:octopress tal$ rake preview 
Starting to watch source with Jekyll and Compass. Starting Rack on port 4000 
Configuration from /Users/tal/Sites/mysite.com/octopress/_config.yml 
[2013-07-04 14:50:23] INFO WEBrick 1.3.1 
[2013-07-04 14:50:23] INFO ruby 1.9.3 (2013-06-27) [x86_64-darwin12.4.0] 
[2013-07-04 14:50:23] INFO WEBrick::HTTPServer#start: pid=51669 port=4000 
Auto-regenerating enabled: source -> public/github 
[2013-07-04 14:50:23] regeneration: 112 files changed 
>>> Change detected at 14:50:23 to: screen.scss 
identical public/github/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 - - [04/Jul/2013 14:50:34] "GET/HTTP/1.1" 404 - 0.0208 
127.0.0.1 - - [04/Jul/2013 14:50:34] "GET /favicon.ico HTTP/1.1" 404 - 0.0015 
^C 
[2013-07-04 14:50:41] INFO going to shutdown ... 
Tin-Aung-Linn:octopress tal$ 

任何人都可以幫助我。 Tin Aung Linn

+0

有沒有錯誤,還有 - 只一個警告,octopress使用一個現在無人管理的庫 –

+0

127.0.0.1 - - [04/Jul/2013 14:50:34]「GET /favicon.ico HTTP/1.1」404 - 0.0015 顯示這個時,我翻轉回來我的瀏覽器沒有顯示在http:// localhost:4000。 –

+0

是否有索引文件要顯示?檢查生成的文件以查看生成的內容 –

回答

2

解決@ Frederick的評論並關閉此主題。

回答

如果生成的索引公共/ mysite的,那麼你就得打 本地主機:4000/mysite的看文件 -

+0

我也開始有這個問題,也許是因爲升級到了特立獨行。我只是在_deploy目錄中運行http-server(從npm安裝),它可以工作。任何開發HTTP服務器應該做的。 – davidjnelson