feat: Sprint 10 - Architecture docs, CI/CD, operational scripts
Some checks failed
CI / lint-and-test (push) Has been cancelled
Some checks failed
CI / lint-and-test (push) Has been cancelled
Phase 1 - Architecture Documentation: - Add Architecture section with Mermaid flowchart to README - Create docs/DATABASE_SCHEMA.md with full ERD Phase 2 - CI/CD: - Add CI badge to README - Create .gitea/workflows/ci.yml for linting and tests - Create .gitea/workflows/deploy-staging.yml - Create .gitea/workflows/deploy-production.yml Phase 3 - Operational Scripts: - Create scripts/logs.sh for docker compose log following - Create scripts/run-detached.sh with health check loop - Create scripts/etl/toronto.sh for Toronto data pipeline - Add Makefile targets: logs, run-detached, etl-toronto Phase 4 - Runbooks: - Create docs/runbooks/adding-dashboard.md - Create docs/runbooks/deployment.md Phase 5 - Hygiene: - Create MIT LICENSE file Phase 6 - Production: - Add live demo link to README (leodata.science) Closes #78, #79, #80, #81, #82, #83, #84, #85, #86, #87, #88, #89, #91 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
20
scripts/logs.sh
Executable file
20
scripts/logs.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# scripts/logs.sh - Follow docker compose logs
|
||||
#
|
||||
# Usage:
|
||||
# ./scripts/logs.sh # All services
|
||||
# ./scripts/logs.sh postgres # Specific service
|
||||
# ./scripts/logs.sh -n 100 # Last 100 lines
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SERVICE="${1:-}"
|
||||
EXTRA_ARGS="${@:2}"
|
||||
|
||||
if [[ -n "$SERVICE" && "$SERVICE" != -* ]]; then
|
||||
echo "Following logs for service: $SERVICE"
|
||||
docker compose logs -f "$SERVICE" $EXTRA_ARGS
|
||||
else
|
||||
echo "Following logs for all services"
|
||||
docker compose logs -f $@
|
||||
fi
|
||||
Reference in New Issue
Block a user