macos - Octopress 运行 rake 预览失败

标签 macos rake octopress

这有点奇怪,我尝试安装 octopress,一切都很顺利,但我就是无法使用 rake preview。我尝试查看预览时有一些信息:

服务器似乎一点问题都没有:

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

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

系统信息: 操作系统 10.9 Safari

最佳答案

我认为这是基于 this issue on Github 的 Safari 的一个已知问题.针对该问题列出的两个建议解决方法是:

  1. 尝试从 Firefox 或 Chrome 中点击 http://localhost:4000

  2. 安装并使用 Ruby Thin Server 而不是默认的 WEBrick 服务器。可以在 this blog post 中找到有关进行更改的一套很好的说明。 .

关于macos - Octopress 运行 rake 预览失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20751377/

相关文章:

objective-c - NSPopUpButtonCell 子类以标准外观关闭动画

macos - CocoaDialog 文本框显示第一行

ios - 为什么仅在第一次返回 __strong 和 __autoreleasing 变量后才会产生不同的对象生命周期?

ruby-on-rails - method_missing 当 `rake test` 加载模型时,尽管如果 Rails 加载模型则正确加载

octopress - 自动生成页面链接到 Octopress 上的导航栏

c - Mac 应用程序卡在 USB 设备的 ReadPipe 上

ruby-on-rails - 从 Rake 文件中的任务调用方法

ruby-on-rails-4 - Autoprefixer hell - Rails

github - 在没有源分支的新计算机上工作 Octopress 博客?

按标签过滤帖子