Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jekyll serve issues #66

Closed
lwasser opened this issue Jul 22, 2014 · 4 comments
Closed

jekyll serve issues #66

lwasser opened this issue Jul 22, 2014 · 4 comments

Comments

@lwasser
Copy link

lwasser commented Jul 22, 2014

HI there - i'm having what is likely some newbie issues... when trying to run jekyll serve i get several errors. The result is a white screen when i type in localhost:4000. Any guidance to get this to work is greatly appreciated. The file mentos.py is in the directory "pygments".
Thank you in advance for any guidance.
leah


C:\Users\lwasser\Documents\GitHub\minimal-mistakes>jekyll serve --watch
Configuration file: C:/Users/lwasser/Documents/GitHub/minimal-mistakes/_config.y
ml
Source: C:/Users/lwasser/Documents/GitHub/minimal-mistakes
Destination: C:/Users/lwasser/Documents/GitHub/minimal-mistakes/_site
Generating...
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/posix-spawn-0.3.8/lib/posix/spawn.rb:162
: warning: cannot close fd before spawn
'which' is not recognized as an internal or external command,
operable program or batch file.
Liquid Exception: No such file or directory - python C:/Ruby200-x64/lib/ruby/g
ems/2.0.0/gems/pygments.rb-0.6.0/lib/pygments/mentos.py in _posts/2011-03-10-sam
ple-post.md
done.
Please add the following to your Gemfile to avoid polling for changes:
require 'rbconfig'
if RbConfig::CONFIG['target_os'] =~ /mswin|mingw|cygwin/i
gem 'wdm', '>= 0.1.0'
end
Auto-regeneration: enabled for 'C:/Users/lwasser/Documents/GitHub/minimal-mista
kes'
Configuration file: C:/Users/lwasser/Documents/GitHub/minimal-mistakes/_config.y
ml
Server address: http://0.0.0.0:4000http://lwasser.github.io/minimal-mistakes
/
Server running... press ctrl-c to stop.

@mmistakes
Copy link
Owner

Looks like your _config.yml might be the culprit. Looking at what you posted above the server address is http://0.0.0.0:4000http://lwasser.github.io/minimal-mistakes which is obviously wrong.

When working locally dump what you currently have there and try this instead:

url: http://localhost:4000
baseurl:

From what I can tell you don't need to set anything for baseurl. You're essentially setting the same url twice which is breaking everything.

@mmistakes
Copy link
Owner

And the other errors are related to the Pygments gem. It can be a bitch getting everything running properly on a Windows machine. Newer versions of Pygments don't play nice. Same deal with Ruby. You'd be better off searching around StackOverflow because these issues are quite common.

@lwasser
Copy link
Author

lwasser commented Jul 22, 2014

Thank you so much! I missed the comment about turning off baseurl in the config. I just turned off pygments for the time being and will search stack overflow for more on it. All good. I am up and running now. I really appreciate the help!

@mmistakes
Copy link
Owner

This is a pretty good guide for installing Jekyll on Windows and it has some tips on getting Pygments working. http://jekyll-windows.juthilo.com/3-syntax-highlighting/

koyumi0601 pushed a commit to koyumi0601/koyumi0601.github.io that referenced this issue Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants