105cf82d21
- 恢复 CelerySettings 和相关计算属性 - 修复 celery/app.py 调用 configure_celery_app 参数 - 创建 core/initialization/init_data.py stub - 删除不完整的 test_auth_supabase_gateway.py
20 lines
618 B
Bash
Executable File
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
|