Files
personal-portfolio/scripts/logs.sh
lmiranda bf6e392002
Some checks failed
CI / lint-and-test (push) Has been cancelled
feat: Sprint 10 - Architecture docs, CI/CD, operational scripts
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>
2026-01-17 17:10:30 -05:00

21 lines
511 B
Bash
Executable File

#!/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