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 "✅ 目录创建完成:"