- Traefik: remove asephstech/asephscloud SSL certs, fix api.insecure, add ping healthcheck - .env.example: prune from 145 to 30 vars (remove Firebase, Discord, Coolify, etc.) - scraper.Dockerfile: remove Node.js & Chromium from runtime, add healthcheck - CI/CD: remove orphan container ref, commented blocks, fix lint workflow - infra: remove mysql config (no active service), clean up middleware config - root: remove .nvmrc (dup), renovate.json (use dependabot), simplify Makefile - scripts: fix legacy package refs, simplify update-deps to use bun - docs: remove stale handoff-log, quality-gates, superpowers designs, archived files - compose: add healthchecks to traefik, redis, and scraper-api services Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
24 lines
819 B
Bash
24 lines
819 B
Bash
#!/bin/bash
|
|
# Copy .env from root to all direct subprojects/packages (not nested, not build, not .git, not .github, not node_modules, not .turbo, not .next, not .vscode, not dist, not public, not src, not coverage, not logs, not .devcontainer, not .yarn, not target)
|
|
# Do NOT copy to /apps or /packages root, only to their subfolders.
|
|
|
|
ROOT_ENV="./.env"
|
|
|
|
if [ ! -f "$ROOT_ENV" ]; then
|
|
echo "Root .env file not found at $ROOT_ENV"
|
|
exit 1
|
|
fi
|
|
|
|
for parent in apps; do
|
|
for dir in ./$parent/*/; do
|
|
# Remove trailing slash
|
|
dir="${dir%/}"
|
|
base=$(basename "$dir")
|
|
if [[ "$base" =~ ^(\.git|\.github|node_modules|\.turbo|\.next|\.vscode|dist|public|src|coverage|logs|\.devcontainer|\.yarn|target)$ ]]; then
|
|
continue
|
|
fi
|
|
cp "$ROOT_ENV" "$dir/.env"
|
|
echo "Copied .env to $dir/.env"
|
|
done
|
|
done
|