- Simplified Dockerfile for scraper by removing unnecessary Node.js installation and optimizing build stages. - Updated Traefik environment configuration to use shorter variable names for certificate paths. - Removed commented-out middleware configurations in dynamic middlewares.yaml. - Cleaned up legacy SSL configurations in ssl.yaml. - Disabled insecure API access in Traefik configuration. - Deleted unused renovate.json file. - Modified update environment script to only process apps directory. - Updated GHCR cleanup script to target specific package. - Streamlined dependency update script to focus on app submodules. - Removed setup script for Prometheus as it is no longer needed.
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
|