Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

jekyll vs bundle exec jekyll #225

Closed
sr-murthy opened this issue Jan 4, 2015 · 3 comments
Closed

jekyll vs bundle exec jekyll #225

sr-murthy opened this issue Jan 4, 2015 · 3 comments

Comments

@sr-murthy
Copy link

Hi

THis is more of a question rather an issue (I am using bundle exec jekyll <command> as per the GitHub pages instructions) but what does bundler do in relation to jekyll, and what is the difference between, say, jekyll [build | serve] vs bundle exec jekyll [build | serve]?

Right now I am able to build and serve the site locally with bundle exec jekyll [build | serve], but when I jekyll [build | serve] it throws the following error

/Library/Ruby/Gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_resolver.rb:4:in `<class:PsychResolver>': uninitialized constant Psych::Nodes (NameError)
from /Library/Ruby/Gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_resolver.rb:2:in `<module:SafeYAML>'
from /Library/Ruby/Gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_resolver.rb:1:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/load.rb:131:in `<module:SafeYAML>'
from /Library/Ruby/Gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/load.rb:26:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll.rb:26:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/bin/jekyll:6:in `<top (required)>'
from /usr/bin/jekyll:23:in `load'
from /usr/bin/jekyll:23:in `<main>'
@doktorbro
Copy link
Member

Bundler's Purpose and Rationale

@sr-murthy
Copy link
Author

Thank you, this is very clear :)

@ghost
Copy link

ghost commented Mar 24, 2017

Thanks for keeping this up! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants