From 7a5644e3fd19400311af03fa466610aa0c000c9c Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Sat, 1 May 2021 22:58:10 -0500 Subject: [PATCH] Install gems in local subdirectory Installing in a local subdirectory means you don't need sudo to install or update and you don't pollute the MacPorts ruby27 gems directory. --- .bundle/config | 2 ++ .gitignore | 1 + README.md | 2 ++ _config.yml | 1 + 4 files changed, 6 insertions(+) create mode 100644 .bundle/config diff --git a/.bundle/config b/.bundle/config new file mode 100644 index 0000000..2369228 --- /dev/null +++ b/.bundle/config @@ -0,0 +1,2 @@ +--- +BUNDLE_PATH: "vendor/bundle" diff --git a/.gitignore b/.gitignore index acd3057..a3d1913 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /_site/ /Gemfile.lock +/vendor/ diff --git a/README.md b/README.md index 5c0d9ad..39b7d84 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ Install the bundle of gems specified by this project's Gemfile: bundle2.7 install +The gems will be installed in the vendor/bundle subdirectory of the current directory. + If it's been awhile since you installed the bundle, update it: bundle2.7 update diff --git a/_config.yml b/_config.yml index f68f5a8..d122752 100644 --- a/_config.yml +++ b/_config.yml @@ -15,6 +15,7 @@ exclude: - Gemfile - Gemfile.lock - README.md + - vendor plugins: - jekyll-feed - jekyll-redirect-from