X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/741593ee2bf203c9261f604d094e3d8e621698a8..204405570f4bf5e8a2b0400d000fc364e5e56f74:/cookbooks/blogs/recipes/default.rb diff --git a/cookbooks/blogs/recipes/default.rb b/cookbooks/blogs/recipes/default.rb index 3f9a8ca25..1d516a35a 100644 --- a/cookbooks/blogs/recipes/default.rb +++ b/cookbooks/blogs/recipes/default.rb @@ -17,6 +17,7 @@ # limitations under the License. # +include_recipe "accounts" include_recipe "apache" include_recipe "git" @@ -25,10 +26,13 @@ package %w[ ruby-dev make gcc + g++ libsqlite3-dev ] -gem_package "bundler" +gem_package "bundler" do + version "~> 1.17.2" +end directory "/srv/blogs.openstreetmap.org" do owner "blogs" @@ -38,7 +42,8 @@ end git "/srv/blogs.openstreetmap.org" do action :sync - repository "git://github.com/gravitystorm/blogs.osm.org.git" + repository "https://github.com/gravitystorm/blogs.osm.org.git" + depth 5 user "blogs" group "blogs" notifies :run, "execute[/srv/blogs.openstreetmap.org/Gemfile]", :immediately @@ -46,16 +51,16 @@ end execute "/srv/blogs.openstreetmap.org/Gemfile" do action :nothing - command "bundle install" + command "bundle install --deployment" cwd "/srv/blogs.openstreetmap.org" - user "root" - group "root" + user "blogs" + group "blogs" notifies :run, "execute[/srv/blogs.openstreetmap.org]", :immediately end execute "/srv/blogs.openstreetmap.org" do action :nothing - command "bundle exec /usr/local/bin/pluto build -t osm -o build" + command "bundle exec pluto build -t osm -o build" cwd "/srv/blogs.openstreetmap.org" user "blogs" group "blogs"