ensminger ensminger - 2 months ago 8
Ruby Question

Jekyll is outputing Gemfile, Gemfile.lock on build. How can / should I prevent this?

jekyll build
is creating a Gemfile and Gemfile.lock in my
_site
directory.

Two questions:


  1. Should I be concerned about including those files in production?

  2. If yes, how can I prevent them from being generated?



Open to any answer, including the yet-not-obvious-to-me.

Thank you!

Here is a screenshot of my environment. You can see that Gemfile and Gemfile.lock are created within
_site
.

enter image description here

Answer

In _config.yml, add :

exclude:
 - Gemfile
 - Gemfile.lock