Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
customer-recall
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tools
customer-recall
Commits
57f98a6c
Commit
57f98a6c
authored
Aug 16, 2025
by
yiling.shen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
deploy_scripts/deploy_with_backup.sh
+17
-0
No files found.
deploy_scripts/deploy_with_backup.sh
View file @
57f98a6c
...
@@ -142,6 +142,23 @@ cd "$PROJECT_DIR"
...
@@ -142,6 +142,23 @@ cd "$PROJECT_DIR"
git pull origin master
git pull origin master
log_success
"代码更新成功!"
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容器
# 第五步:部署Docker容器
log_info
"🐳 部署Docker容器..."
log_info
"🐳 部署Docker容器..."
docker compose down
docker compose down
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment