diff --git a/deploy/trialrun/.env.example b/deploy/trialrun/.env.example index e653bab3..c13fcd97 100644 --- a/deploy/trialrun/.env.example +++ b/deploy/trialrun/.env.example @@ -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 diff --git a/deploy/trialrun/deploy.sh b/deploy/trialrun/deploy.sh index d222d981..4e734d84 100755 --- a/deploy/trialrun/deploy.sh +++ b/deploy/trialrun/deploy.sh @@ -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 >> 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