Gemfile breaks jekyll s #609

Closed
opened 2018-11-22 15:22:44 +00:00 by ghost · 6 comments
ghost commented 2018-11-22 15:22:44 +00:00 (Migrated from github.com)

The current Gemfile includes GH pages, but for jekyll s to work, with jekyll-watch, you need

gem "jekyll", "~> 3.8.4"

The current Gemfile includes GH pages, but for `jekyll s` to work, with jekyll-watch, you need `gem "jekyll", "~> 3.8.4"`
Vincevrp commented 2018-11-22 15:29:57 +00:00 (Migrated from github.com)

Use bundle exec jekyll serve

Use `bundle exec jekyll serve`
ghost commented 2018-11-22 15:34:19 +00:00 (Migrated from github.com)

Maybe add this to readme?

This still doesn't execute due to the GH pages dependency. Should that be installed on local machines as well?

Maybe add this to readme? This still doesn't execute due to the GH pages dependency. Should that be installed on local machines as well?
Vincevrp commented 2018-11-22 17:27:03 +00:00 (Migrated from github.com)

Maybe add this to readme?

This still doesn't execute due to the GH pages dependency. Should that be installed on local machines as well?

This should work:

bundle install
bundle exec jekyll serve

If you can confirm this, I will add it to the README.

> Maybe add this to readme? > > This still doesn't execute due to the GH pages dependency. Should that be installed on local machines as well? This should work: ``` bundle install bundle exec jekyll serve ``` If you can confirm this, I will add it to the README.
ghost commented 2018-11-22 17:39:26 +00:00 (Migrated from github.com)

bundle install is an extremely long process. It took like 5 minutes. Isn't it possible to have a different Gemfile for gh pages and for people who clone the repo? Simply changing the gh pages gem to jekyll takes like one second and works.

We could just recommend people to run sed -i 's/gem "github-pages", group: :jekyll_plugins/gem "jekyll", "~> 3.8.4"/g' Gemfile, and if on Windows to make this change manually.

`bundle install` is an extremely long process. It took like 5 minutes. Isn't it possible to have a different Gemfile for gh pages and for people who clone the repo? Simply changing the gh pages gem to jekyll takes like one second and works. We could just recommend people to run `sed -i 's/gem "github-pages", group: :jekyll_plugins/gem "jekyll", "~> 3.8.4"/g' Gemfile`, and if on Windows to make this change manually.
Vincevrp commented 2018-11-22 18:02:24 +00:00 (Migrated from github.com)

bundle install is an extremely long process. It took like 5 minutes.

This takes under 1 minute for me.

Isn't it possible to have a different Gemfile for gh pages and for people who clone the repo? Simply changing the gh pages gem to jekyll takes like one second and is quick.

As I wrote in #582, the reason we use it it is explained here.

> `bundle install` is an extremely long process. It took like 5 minutes. This takes under 1 minute for me. > Isn't it possible to have a different Gemfile for gh pages and for people who clone the repo? Simply changing the gh pages gem to jekyll takes like one second and is quick. As I wrote in #582, the reason we use it it is explained [here](https://jekyllrb.com/docs/github-pages/#the-github-pages-gem).
ghost commented 2018-11-25 10:20:49 +00:00 (Migrated from github.com)

I guess this could be related to how we initially installed Jekyll? Anyway, after running bundle install once, it's very fast the next time.

I guess this could be related to how we initially installed Jekyll? Anyway, after running `bundle install` once, it's very fast the next time.
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: privacyguides/privacytools.io#609
No description provided.