Reputation: 7710
I am new to Jekyll and I am trying to build a blog using static pages with Octopress.
rake
is generating the site correctly without any errors but when I try to preview the site, depsite that the server starts without any error
>>> Compass is polling for changes. Press Ctrl-C to Stop.
[2014-02-23 15:23:50] INFO WEBrick 1.3.1
[2014-02-23 15:23:50] INFO ruby 2.0.0 (2013-11-22) [x64-mingw32]
[2014-02-23 15:23:50] INFO WEBrick::HTTPServer#start: pid=1996 port=4000
It will throw errors when I try to access localhost:4000
from my web browser and will not serve the files
127.0.0.1 - - [23/Feb/2014 15:25:25] "GET / HTTP/1.1" 200 - 0.0500
[2014-02-23 15:25:25] ERROR Errno::ECONNRESET: An existing connection was forcibly closed by the remote host.
c:/Ruby/lib/ruby/2.0.0/webrick/httpserver.rb:80:in `eof?'
c:/Ruby/lib/ruby/2.0.0/webrick/httpserver.rb:80:in `run'
c:/Ruby/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
I am running Windows 8.1 and I have been trying rake preview
with both Ruby 1.9.3 and 2.0 and also both x86 and x64 architectures on different machines. Also I tried to disable my firewall but it did not fix the issue.
I'd really appreciate some help to solve this issue.
Thanks.
Upvotes: 2
Views: 250
Reputation: 1958
After some googling, it looks like this may be a WEBrick specific error with Windows and IE (you didn't list the browser(s) you tried, but most results also list IE as a culprit). I would try:
http://localhost:4000
from Firefox/Chrome and see if the error persistsUpvotes: 1
Reputation: 162
From Octopress documentation, it is recommended that you use Ruby 1.9.3. You can easily get Ruby 1.9.3 and other useful tools for Windows system by installing railsInstaller.
Upvotes: 0