Commit 57f98a6c by yiling.shen

Add clinic data file verification to deployment script - check all 9 clinic JSON files

parent c961ee5b
Pipeline #3193 passed with stages
in 1 minute 17 seconds
......@@ -142,6 +142,23 @@ cd "$PROJECT_DIR"
git pull origin master
log_success "代码更新成功!"
# 第四步.5:确保诊所数据文件存在
log_info "📋 检查诊所数据文件..."
if [ ! -d "诊所患者json" ]; then
log_warning "诊所患者json目录不存在,创建目录..."
mkdir -p "诊所患者json"
fi
# 检查关键诊所文件
CLINIC_FILES=("东亭门诊.json" "大丰门诊.json" "惠山门诊.json" "新吴门诊.json" "河埒门诊.json" "红豆门诊.json" "通善口腔医院.json" "马山门诊.json" "学前街门诊.json")
for file in "${CLINIC_FILES[@]}"; do
if [ ! -f "诊所患者json/$file" ]; then
log_warning "诊所文件缺失: $file"
else
log_info "诊所文件存在: $file"
fi
done
# 第五步:部署Docker容器
log_info "🐳 部署Docker容器..."
docker compose down
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment