From: Tom Hughes Date: Fri, 21 Feb 2025 00:03:56 +0000 (+0000) Subject: Install gems for taginfo in deployment mode X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/71c7f777d304b47a28734142759efc71a5227f08 Install gems for taginfo in deployment mode --- diff --git a/cookbooks/taginfo/recipes/default.rb b/cookbooks/taginfo/recipes/default.rb index e4a6da00f..729f92777 100644 --- a/cookbooks/taginfo/recipes/default.rb +++ b/cookbooks/taginfo/recipes/default.rb @@ -179,10 +179,17 @@ node[:taginfo][:sites].each do |site| notifies :restart, "service[apache2]" end + bundle_config "#{directory}/taginfo" do + user "taginfo" + group "taginfo" + settings "deployment" => "true", + "without" => "development:test" + end + bundle_install "#{directory}/taginfo" do action :nothing - user "root" - group "root" + user "taginfo" + group "taginfo" subscribes :run, "git[#{directory}/taginfo]" notifies :restart, "passenger_application[#{directory}/taginfo/web/public]" end