From b12ab787f94c1bcbca95db49a28659a9441825f0 Mon Sep 17 00:00:00 2001 From: wangys <3401275564@qq.com> Date: Wed, 26 Nov 2025 14:18:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=88=AC=E8=99=AB=E5=A4=8D=E5=88=B6=E8=BF=81?= =?UTF-8?q?=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- docker/init-volumes.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7219b53..54e64fc 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ build_output # Docker volumes(运行时数据,不纳入版本控制) -docker/volumes/ \ No newline at end of file +docker/volumes/ +docker/crawler \ No newline at end of file diff --git a/docker/init-volumes.sh b/docker/init-volumes.sh index fd8e7a3..63ab475 100755 --- a/docker/init-volumes.sh +++ b/docker/init-volumes.sh @@ -37,7 +37,7 @@ echo "复制配置文件模板..." [ -f config/log4j2-spring.xml ] && cp config/log4j2-spring.xml "${VOLUMES_DIR}/serv/config/" || echo " ⚠️ log4j2-spring.xml 不存在" [ -f config/web-app-config.js ] && cp config/web-app-config.js "${VOLUMES_DIR}/web/config/app-config.js" || echo " ⚠️ web-app-config.js 不存在" [ -f nginx/nginx.conf ] && cp -r nginx/* "${VOLUMES_DIR}/nginx/config/" || echo " ⚠️ nginx配置 不存在" -[ -d ../schoolNewsCrawler ] && cp -r ../schoolNewsCrawler/* "${VOLUMES_DIR}/serv/crawler/" || echo " ⚠️ 爬虫脚本 不存在" # 可选 +[ -d crawler/ ] && cp -r crawler/* "${VOLUMES_DIR}/serv/crawler/" || echo " ⚠️ 爬虫脚本 不存在" echo "" echo "✅ 目录创建完成:"