From: Tom Hughes Date: Sun, 20 Jan 2019 00:41:59 +0000 (+0000) Subject: Run pluto through bundler X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/26cf6103779739532340c4838555985479e76de6 Run pluto through bundler --- diff --git a/cookbooks/blogs/recipes/default.rb b/cookbooks/blogs/recipes/default.rb index da3b0da61..ea0b3dc8f 100644 --- a/cookbooks/blogs/recipes/default.rb +++ b/cookbooks/blogs/recipes/default.rb @@ -55,7 +55,7 @@ end execute "/srv/blogs.openstreetmap.org" do action :nothing - command "/usr/local/bin/pluto build -t osm -o build" + command "bundle exec /usr/local/bin/pluto build -t osm -o build" cwd "/srv/blogs.openstreetmap.org" user "blogs" group "blogs" diff --git a/cookbooks/blogs/templates/default/cron.erb b/cookbooks/blogs/templates/default/cron.erb index 0d4976087..c2d6dfb16 100644 --- a/cookbooks/blogs/templates/default/cron.erb +++ b/cookbooks/blogs/templates/default/cron.erb @@ -2,4 +2,4 @@ MAILTO=admins@openstreetmap.org -*/30 * * * * blogs /usr/local/bin/pluto --quieter --config=/srv/blogs.openstreetmap.org build --dbpath=/srv/blogs.openstreetmap.org --template=osm --output=/srv/blogs.openstreetmap.org/build /srv/blogs.openstreetmap.org/planet.ini > /dev/null +*/30 * * * * blogs cd /srv/blogs.openstreetmap.org; bundle exec /usr/local/bin/pluto --quieter --config=/srv/blogs.openstreetmap.org build --dbpath=/srv/blogs.openstreetmap.org --template=osm --output=/srv/blogs.openstreetmap.org/build /srv/blogs.openstreetmap.org/planet.ini > /dev/null