Commit 1decb59d by yiling.shen

simplify yaml remove complex commands and special characters

parent 484e145a
Pipeline #3208 passed with stages
in 1 minute 32 seconds
...@@ -52,12 +52,10 @@ deploy_to_production: ...@@ -52,12 +52,10 @@ deploy_to_production:
- echo "Clinic JSON files check start" - echo "Clinic JSON files check start"
- echo "Check clinic patient json directory" - echo "Check clinic patient json directory"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && ls -la 诊所患者json/ 2>/dev/null || echo 'Clinic patient json directory not found'" - ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && ls -la 诊所患者json/ 2>/dev/null || echo 'Clinic patient json directory not found'"
- echo "Check specific clinic files with file sizes" - echo "Check specific clinic files"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && for file in 东亭门诊.json 大丰门诊.json 惠山门诊.json 新吴门诊.json 河埒门诊.json 红豆门诊.json 通善口腔医院.json 马山门诊.json 学前街门诊.json; do if [ -f \"诊所患者json/\$file\" ]; then size=\$(stat -c%s \"诊所患者json/\$file\"); echo \"✓ \$file exists (size: \$size bytes)\"; else echo \"✗ \$file missing\"; fi; done" - ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && for file in 东亭门诊.json 大丰门诊.json 惠山门诊.json 新吴门诊.json 河埒门诊.json 红豆门诊.json 通善口腔医院.json 马山门诊.json 学前街门诊.json; do if [ -f \"诊所患者json/\$file\" ]; then echo \"✓ \$file exists\"; else echo \"✗ \$file missing\"; fi; done"
- echo "Check 学前街门诊.json specifically" - echo "Check 学前街门诊.json specifically"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && if [ -f \"诊所患者json/学前街门诊.json\" ]; then echo \"学前街门诊.json exists\"; ls -la \"诊所患者json/学前街门诊.json\"; else echo \"学前街门诊.json missing - this is the problem!\"; fi" - ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && if [ -f \"诊所患者json/学前街门诊.json\" ]; then echo \"学前街门诊.json exists\"; ls -la \"诊所患者json/学前街门诊.json\"; else echo \"学前街门诊.json missing - this is the problem!\"; fi"
- echo "Check if 学前街门诊.json exists in other locations"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && find . -name \"*学前街*\" -type f 2>/dev/null || echo 'No files found with 学前街 in name'"
- echo "Clinic JSON files check end" - echo "Clinic JSON files check end"
- echo "Data import check start" - echo "Data import check start"
- echo "Check safe_import_patients.py script" - echo "Check safe_import_patients.py script"
......
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