]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/blogs/recipes/default.rb
Make fullstaq ruby the default
[chef.git] / cookbooks / blogs / recipes / default.rb
index 0fb2cc7aad06dc4739e903125d59de39ec871bdb..5c650f2427863ed9c896ae647638d97e299bcead 100644 (file)
@@ -44,10 +44,18 @@ git "/srv/blogs.openstreetmap.org" do
   group "blogs"
 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 --without development test"
-  environment "BUNDLE_PATH" => "vendor/bundle"
   user "blogs"
   group "blogs"
   subscribes :run, "git[/srv/blogs.openstreetmap.org]", :immediately
@@ -56,7 +64,6 @@ end
 bundle_exec "/srv/blogs.openstreetmap.org" do
   action :nothing
   command "pluto build -t osm -o build"
-  environment "BUNDLE_PATH" => "vendor/bundle"
   user "blogs"
   group "blogs"
   subscribes :run, "git[/srv/blogs.openstreetmap.org]", :immediately