]> git.openstreetmap.org Git - chef.git/commitdiff
Workaround jekyll-cache issue
authorGrant Slater <git@firefishy.com>
Sun, 13 Oct 2019 21:47:49 +0000 (22:47 +0100)
committerGrant Slater <git@firefishy.com>
Sun, 13 Oct 2019 21:47:49 +0000 (22:47 +0100)
cookbooks/foundation/recipes/owg.rb
cookbooks/stateofthemap/recipes/default.rb

index 251999d53358098bb00cc6b4d320a240170e9a13..b60d02bac284c6394c02391ccb9ea19c59a1de1a 100644 (file)
@@ -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"
index ce258b10a21b3bd194fc67b43200013616f412f9..c9eb827d5c56c5962a3063158eabdecb61b61993 100644 (file)
@@ -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"