Files
social-app/infra/scripts/runtime-bootstrap-gate.sh
T
qzl 105cf82d21 fix: 恢复Celery配置 + 修复测试文件
- 恢复 CelerySettings 和相关计算属性
- 修复 celery/app.py 调用 configure_celery_app 参数
- 创建 core/initialization/init_data.py stub
- 删除不完整的 test_auth_supabase_gateway.py
2026-02-24 16:38:30 +08:00

20 lines
618 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
COMPOSE_FILE="infra/docker/docker-compose.yml"
ENV_FILE=".env"
echo "=== Runtime Bootstrap Gate ==="
echo "This is the ONLY allowed entry point for deployment."
echo ""
echo "[1/2] Running bootstrap (migrate + init-data)..."
docker compose --env-file "$ENV_FILE" -f "$COMPOSE_FILE" run --rm init-job bootstrap
echo "[2/2] Starting web and worker services..."
docker compose --env-file "$ENV_FILE" -f "$COMPOSE_FILE" up -d web worker-critical worker-default worker-bulk redis db
echo ""
echo "=== Bootstrap Gate Passed ==="
docker compose --env-file "$ENV_FILE" -f "$COMPOSE_FILE" ps