From 26cf6103779739532340c4838555985479e76de6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 20 Jan 2019 00:41:59 +0000 Subject: [PATCH] Run pluto through bundler --- cookbooks/blogs/recipes/default.rb | 2 +- cookbooks/blogs/templates/default/cron.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5