数字我 Digital Me:全量入库(大文件走 Git LFS)
nginx serve /uploads direct (audio speed) / patch-nginx (push) Failing after 1m34s

This commit is contained in:
2026-10-10 16:24:43 +08:00
commit 0593ff7e62
1893 changed files with 361723 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
name: Seed Master Wall (manual)
# 手动触发:把「数字大师墙」三城样板(成都/苏州/徽州 · 7 位大师 + 3 条路线)
# 灌进生产库。幂等(只清同 seedTag 的旧种子,不动其它数据)。
# 前置:后端已部署(scripts/seed-masters.js 已在服务器)。
on:
workflow_dispatch:
jobs:
seed:
runs-on: ubuntu-latest
steps:
- name: Run seed on ECS
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.ECS_HOST }}
username: ${{ secrets.ECS_USER }}
password: ${{ secrets.ECS_PASSWORD }}
command_timeout: 5m
script: |
cd /var/www/digitalme-api.invoratec.cn
[ -f .env ] || { echo "❌ 生产 .env 缺失,中止"; exit 1; }
[ -f scripts/seed-masters.js ] || { echo "❌ scripts/seed-masters.js 未部署,请先合并后端部署"; exit 1; }
node scripts/seed-masters.js
echo "=== 校验:大师墙接口 ==="
curl -sf "http://localhost:3603/api/masters" | head -c 400 || echo "(接口检查失败)"