X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a406b373ee9a85b2f79e187b582379326b7b70d2..51175a24c4dc9433bad1d9aafe8919e16401b1a4:/cookbooks/blogs/recipes/default.rb diff --git a/cookbooks/blogs/recipes/default.rb b/cookbooks/blogs/recipes/default.rb index 6b181f209..5c650f242 100644 --- a/cookbooks/blogs/recipes/default.rb +++ b/cookbooks/blogs/recipes/default.rb @@ -42,15 +42,23 @@ git "/srv/blogs.openstreetmap.org" do depth 1 user "blogs" group "blogs" - notifies :run, "bundle_install[/srv/blogs.openstreetmap.org]", :immediately +end + +bundle_config "/srv/blogs.openstreetmap.org" do + action :nothing + user "blogs" + group "blogs" + settings "deployment" => "true", + "without" => "development:test", + "build.sqlite3" => "--enable-system-libraries" + subscribes :create, "git[/srv/blogs.openstreetmap.org]", :immediately end bundle_install "/srv/blogs.openstreetmap.org" do action :nothing - options "--deployment" - user "root" - group "root" - notifies :run, "bundle_exec[/srv/blogs.openstreetmap.org]", :immediately + user "blogs" + group "blogs" + subscribes :run, "git[/srv/blogs.openstreetmap.org]", :immediately end bundle_exec "/srv/blogs.openstreetmap.org" do @@ -58,6 +66,7 @@ bundle_exec "/srv/blogs.openstreetmap.org" do command "pluto build -t osm -o build" user "blogs" group "blogs" + subscribes :run, "git[/srv/blogs.openstreetmap.org]", :immediately end ssl_certificate "blogs.openstreetmap.org" do