refactor: 调整地图文件路径

This commit is contained in:
xuwei-fit2cloud
2026-03-31 17:14:51 +08:00
parent f1b40b896e
commit 1eda9c9bdf
3 changed files with 6 additions and 1 deletions

View File

@@ -12,7 +12,6 @@ RUN mkdir -p /opt/apps/config \
/opt/dataease2.0/data/plugin/
ADD drivers/* /opt/dataease2.0/drivers/
ADD mapFiles/ /opt/dataease2.0/data/map/
ADD staticResource/ /opt/dataease2.0/data/static-resource/
WORKDIR /opt/apps

View File

@@ -14,6 +14,7 @@ services:
- ${DE_BASE}/dataease2.0/data/static-resource:/opt/dataease2.0/data/static-resource
- ${DE_BASE}/dataease2.0/cache:/opt/dataease2.0/cache
- ${DE_BASE}/dataease2.0/data/geo:/opt/dataease2.0/data/geo
- ${DE_BASE}/dataease2.0/data/map:/opt/dataease2.0/data/map
- ${DE_BASE}/dataease2.0/data/appearance:/opt/dataease2.0/data/appearance
- ${DE_BASE}/dataease2.0/data/exportData:/opt/dataease2.0/data/exportData
- ${DE_BASE}/dataease2.0/data/plugin:/opt/dataease2.0/data/plugin

View File

@@ -133,6 +133,11 @@ function prepare_de_run_base() {
envsubst < $i > $CONF_FOLDER/$i
fi
done
log_content "复制地图文件"
if [ -d ${DE_RUN_BASE}/data/map ] || [ -d ${DE_RUN_BASE}/mapFiles ]; then
mv ${DE_RUN_BASE}/mapFiles/* ${DE_RUN_BASE}/data/map/
fi
}
function update_dectl() {