fix(deploy): 补齐 trialrun 考勤环境并修正 init 构建

- 为 trialrun 环境契约补充 ATTENDANCE_ENABLED=true
- 部署脚本先 build init 再 run,避免新迁移和 seed 被旧镜像跳过
这个提交包含在:
2026-04-12 10:46:45 +08:00
父节点 677aa6cac3
当前提交 dbab1d7b6e
共修改 2 个文件,包含 9 行新增和 5 行删除
+1
查看文件
@@ -174,6 +174,7 @@ PORTAL_HOME_ENABLED=true
GLOBAL_SEARCH_ENABLED=true
ANNOUNCEMENTS_ENABLED=true
PRESENCE_BOARD_ENABLED=true
ATTENDANCE_ENABLED=true
WEEKLY_REPORT_ENABLED=true
EMPLOYEE_LIFECYCLE_ENABLED=true
TODO_BOARD_ENABLED=true
+8 -5
查看文件
@@ -131,10 +131,13 @@ if [[ "$ENABLE_WORKER" == "1" ]]; then
"${compose_cmd[@]}" "${profile_args[@]}" up -d worker
fi
echo ">>> 4.3 执行 init"
echo ">>> 4.3 构建最新 init 镜像"
"${compose_cmd[@]}" build init
echo ">>> 4.4 执行 init"
"${compose_cmd[@]}" run --rm -T init </dev/null
echo ">>> 4.4 等待 /ready"
echo ">>> 4.5 等待 /ready"
ready_ok=0
for i in $(seq 1 60); do
if curl -fsS http://127.0.0.1:3000/ready >/dev/null; then
@@ -150,21 +153,21 @@ if [[ "$ready_ok" != "1" ]]; then
exit 1
fi
echo ">>> 4.5 执行 external deps smoke"
echo ">>> 4.6 执行 external deps smoke"
if ! "${compose_cmd[@]}" exec -T server node src/scripts/smoke-external-deps.js; then
echo "[ERROR] external deps smoke 失败,输出最近 server 日志" >&2
"${compose_cmd[@]}" logs --tail=200 server || true
exit 1
fi
echo ">>> 4.6 执行 runtime smoke"
echo ">>> 4.7 执行 runtime smoke"
if ! "${compose_cmd[@]}" exec -T server node src/scripts/smoke-trialrun-runtime.js; then
echo "[ERROR] runtime smoke 失败,输出最近 server 日志" >&2
"${compose_cmd[@]}" logs --tail=200 server || true
exit 1
fi
echo ">>> 4.7 当前服务状态"
echo ">>> 4.8 当前服务状态"
"${compose_cmd[@]}" ps
REMOTE