]> git.openstreetmap.org Git - chef.git/blob - cookbooks/vectortile/templates/default/vector-update-tile.erb
Drop segment length limit from tile server replication
[chef.git] / cookbooks / vectortile / templates / default / vector-update-tile.erb
1 #!/bin/sh
2
3 # Usage
4 # sudo -u tilekiln vector-update
5
6 set -eu
7
8 export LUA_PATH='/srv/vector.openstreetmap.org/osm2pgsql-themepark/lua/?.lua;/srv/vector.openstreetmap.org/spirit/?.lua;;'
9
10 osm2pgsql-replication update \
11   -d "<%= @source_database %>" \
12   --max-diff-size "<%= @diff_size %>" \
13   --post-processing "<%= @post_processing %>" \
14   -- --expire-tiles=10-14 \
15   --expire-output="<%= @tiles_file %>"