From: Paul Norman Date: Sat, 4 Feb 2017 22:40:57 +0000 (-0800) Subject: Specify database for osm2pgsql on rendering servers X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/ad4e5443665d3856afa7f7587365215b8ab3dac6?ds=inline Specify database for osm2pgsql on rendering servers --- diff --git a/cookbooks/tile/templates/default/replicate.erb b/cookbooks/tile/templates/default/replicate.erb index 1b6c61bbc..145f6eb40 100644 --- a/cookbooks/tile/templates/default/replicate.erb +++ b/cookbooks/tile/templates/default/replicate.erb @@ -68,9 +68,9 @@ do # Apply the changes to the database <% if node[:tile][:node_file] -%> - osm2pgsql --slim --append --number-processes=1 --flat-nodes=<%= node[:tile][:node_file] %> ${file} + osm2pgsql --database gis --slim --append --number-processes=1 --flat-nodes=<%= node[:tile][:node_file] %> ${file} <% else -%> - osm2pgsql --slim --append --number-processes=1 ${file} + osm2pgsql --database gis --slim --append --number-processes=1 ${file} <% end -%> # No need to rollback now