Skip to content

Commit

Permalink
Remove mbtiles before rendering since it does not replace
Browse files Browse the repository at this point in the history
  • Loading branch information
jflemer-ndp committed Jun 13, 2016
1 parent 374532f commit 8052eef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gen/tile-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ render_tiles_tl() {
render_tiles() {
if newer import tiles; then
LOG "rendering tiles to: ${TILEROOT}/${STYLE_NAME}.mbtiles"
rm "${TILEROOT}/${STYLE_NAME}.mbtiles"
(cd "${STYLEDIR}/${STYLE_NAME}" && su - osm -c "env 'UV_THREADPOOL_SIZE=32' /opt/osm/node_modules/tilelive/bin/tilelive-copy --minzoom=${MINZOOM} --maxzoom=${MAXZOOM} --concurrency=${THREADS} --retry=1000 --withoutprogress --timeout=900000 '${STYLE_URL}' '${TILEROOT}/${STYLE_NAME}.mbtiles'") || return 1
mark tiles
fi
Expand Down

0 comments on commit 8052eef

Please sign in to comment.