From 8517d5da18ea743e5c932fd90b8a0324ab50f3d0 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sun, 13 Oct 2019 22:47:49 +0100 Subject: [PATCH] Workaround jekyll-cache issue --- cookbooks/foundation/recipes/owg.rb | 10 +++++++++- cookbooks/stateofthemap/recipes/default.rb | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/cookbooks/foundation/recipes/owg.rb b/cookbooks/foundation/recipes/owg.rb index 251999d53..b60d02bac 100644 --- a/cookbooks/foundation/recipes/owg.rb +++ b/cookbooks/foundation/recipes/owg.rb @@ -44,9 +44,17 @@ directory "/srv/operations.osmfoundation.org/_site" do group "nogroup" end +# Workaround https://github.com/jekyll/jekyll/issues/7804 +# by creating a .jekyll-cache folder +directory "/srv/operations.osmfoundation.org/.jekyll-cache" do + mode 0o755 + owner "nobody" + group "nogroup" +end + execute "/srv/operations.osmfoundation.org/Gemfile" do action :nothing - command "bundle install --deployment --jobs 4 --retry 3" + command "bundle install --deployment" cwd "/srv/operations.osmfoundation.org" user "root" group "root" diff --git a/cookbooks/stateofthemap/recipes/default.rb b/cookbooks/stateofthemap/recipes/default.rb index ce258b10a..c9eb827d5 100644 --- a/cookbooks/stateofthemap/recipes/default.rb +++ b/cookbooks/stateofthemap/recipes/default.rb @@ -306,9 +306,17 @@ end group "nogroup" end + # Workaround https://github.com/jekyll/jekyll/issues/7804 + # by creating a .jekyll-cache folder + directory "/srv/#{year}.stateofthemap.org/.jekyll-cache" do + mode 0o755 + owner "nobody" + group "nogroup" + end + execute "/srv/#{year}.stateofthemap.org/Gemfile" do action :nothing - command "bundle install --deployment --jobs 4 --retry 3" + command "bundle install --deployment" cwd "/srv/#{year}.stateofthemap.org" user "root" group "root" -- 2.43.2