2026-10-15 20:55:25 +08:00
|
|
|
#!/bin/sh
|
2026-10-15 22:51:45 +08:00
|
|
|
# Initialize dependencies via GitHub HTTPS with self-hosted HTTPS fallback, then build Docker Compose.
|
2026-10-15 20:55:25 +08:00
|
|
|
set -eu
|
|
|
|
|
PROJECT_ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
2026-10-15 21:12:36 +08:00
|
|
|
python3 "$PROJECT_ROOT/scripts/init-deps.py"
|
|
|
|
|
python3 "$PROJECT_ROOT/scripts/prepare-deploy.py" --build-database
|
2026-10-15 20:55:25 +08:00
|
|
|
docker compose --env-file "$PROJECT_ROOT/.env" -f "$PROJECT_ROOT/deploy/compose.yaml" up -d --build
|
|
|
|
|
printf '%s\n' 'When the database is ready, run the documented db-init command once.'
|