Octopress无法运行rake预览 [英] Octopress failed on running rake preview

查看:52
本文介绍了Octopress无法运行rake预览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有点麻烦的是,我尝试安装octopress,一切都进行得很好,但是我只是不能使用 rake预览.当我尝试查看预览时,有一些信息:

It's a little wired that, I tried to install octopress, everything went very well, but I just can't use the rake preview. There are some information when I tried to view preview:

服务器似乎根本没有问题:

Server seems no problem at all:

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,但是发现它只是没有完成其工作:

You can see the response code is 200, BUT when I looked into the browser, I found that it just didn't do its job:

我从未见过这种错误.我严格按照octopress的说明进行安装.我错过了什么吗?

I never saw this kind of errors. I followed the octopress' instructions strictly to install it. Did I miss something?

系统信息:OSX 10.9Safari

SYS INFO: OSX 10.9 Safari

推荐答案

我认为这是基于这个问题在Github上.在该问题上列出的两个建议的解决方法是:

I think this is a known problem with Safari based on this issue on Github. The two suggested workarounds listed on that issue are:

  1. 尝试从Firefox或Chrome浏览器访问 http://localhost:4000 .

安装并使用Ruby Thin Server而不是默认的WEBrick服务器.可以在中找到有关进行此更改的一组很好的说明.此博客帖子.

Install and use the Ruby Thin Server instead of the default WEBrick server. A good set of instructions for making that change can be found in this blog post.

这篇关于Octopress无法运行rake预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆