symphonycms / docs.getsymphony.com

The official repository for the Symphony CMS documentation site
2 stars 2 forks source link

Use github-pages gem instead of referencing jekyll directly #14

Closed tachyondecay closed 9 years ago

tachyondecay commented 9 years ago

I've been reading over the Jekyll and GitHub Pages docs to get my head around how to use this. One thing both stress is that it’s best practice to use the github-pages gem, because that will help resolve dependency issues between the gems that GitHub runs and the gems we run locally.

bernardodiasc commented 9 years ago

Good move! Thanks!

bernardodiasc commented 9 years ago

For the record, after this change I can't use jekyll serve anymore. But bundle exec jekyll serve works.

bernardodiasc commented 9 years ago

Seems that I'll need to downgrade the Jekyll version to 2.4... :/

tachyondecay commented 9 years ago

Did you run bundle install from the working directory? That should install any dependencies for this particular project. This is what I get for Jekyll versions after I did that:

ben@serenity:~$ jekyll --version
jekyll 2.5.3
ben@serenity:~$ cd dev/docs.getsymphony.com/
ben@serenity:~/dev/docs.getsymphony.com$ jekyll --version
jekyll 2.4.0
bernardodiasc commented 9 years ago

I did this and still returning the same error.

/var/lib/gems/1.9.1/gems/jekyll-2.5.3/bin/jekyll:21:in `block in <top (required)>': cannot load such file -- jekyll/version (LoadError)
    from /var/lib/gems/1.9.1/gems/mercenary-0.3.5/lib/mercenary.rb:18:in `program'
    from /var/lib/gems/1.9.1/gems/jekyll-2.5.3/bin/jekyll:20:in `<top (required)>'
    from /usr/local/bin/jekyll:23:in `load'
    from /usr/local/bin/jekyll:23:in `<main>'