Actualizar pgtilesrv_config.sh

This commit is contained in:
2026-08-10 23:57:35 -04:00
parent 2ae12c8e28
commit e3c2e8024b

View File

@@ -3,6 +3,9 @@
eval MIDOMINIO=$(docker exec arches_db printenv DOMAINS) eval MIDOMINIO=$(docker exec arches_db printenv DOMAINS)
eval MIPROY=$(docker exec arches_db printenv COMPOSE_PROJECT_NAME) eval MIPROY=$(docker exec arches_db printenv COMPOSE_PROJECT_NAME)
MISQL="INSERT INTO map_sources (name, source) VALUES ('ponderacion-pg-tilesrv', '{\"type\": \"vector\", \"tiles\": [\"https://$MIDOMINIO/pgtileserv/public.ponderacion/{z}/{x}/{y}.pbf\"], \"tileSize\": 512}') ON CONFLICT DO NOTHING RETURNING *;" MISQL="INSERT INTO map_sources (name, source)
VALUES ('ponderacion-pg-tilesrv', '{\"type\": \"vector\", \"tiles\": [\"https://$MIDOMINIO/pgtileserv/public.ponderacion/{z}/{x}/{y}.pbf\"], \"tileSize\": 512}')
ON CONFLICT (name)
DO UPDATE SET source = EXCLUDED.source;"
docker exec arches_db psql -U postgres -d $MIPROY -c "$MISQL" docker exec arches_db psql -U postgres -d $MIPROY -c "$MISQL"