mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:01:09 +02:00
Complete rename across the entire monorepo pre-launch: - Module, routes, API, i18n, standalone landing app directories - All code identifiers, display names, logo component - German user-facing label: "Essen" (English brand stays "Food") - Dexie table nutriFavorites -> foodFavorites - Infra configs (docker-compose, cloudflared, nginx, wrangler) Zero residue of nutriphi remains. No data migration needed (pre-launch). Follow-up: run pnpm install, update Cloudflare DNS (food.mana.how), rename Cloudflare Pages project. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
56 lines
1.5 KiB
Bash
Executable file
56 lines
1.5 KiB
Bash
Executable file
#!/bin/bash
|
|
# Build all landing pages and copy dist/ to the shared nginx volume
|
|
# Run on the Mac Mini after git pull
|
|
#
|
|
# Usage: ./scripts/mac-mini/build-landings.sh
|
|
|
|
set -e
|
|
|
|
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
OUTPUT_DIR="/Volumes/ManaData/landings"
|
|
|
|
echo "=== Building Landing Pages ==="
|
|
echo "Output: $OUTPUT_DIR"
|
|
echo ""
|
|
|
|
mkdir -p "$OUTPUT_DIR"
|
|
|
|
# Landing pages to build (filter name → dist path → output name)
|
|
declare -A LANDINGS=(
|
|
["it"]="services/it-landing"
|
|
["chat"]="apps/chat/apps/landing"
|
|
["picture"]="apps/picture/apps/landing"
|
|
["zitare"]="apps/zitare/apps/landing"
|
|
["presi"]="apps/presi/apps/landing"
|
|
["clock"]="apps/clock/apps/landing"
|
|
["cards"]="apps/cards/apps/landing"
|
|
["food"]="apps/food/apps/landing"
|
|
["citycorners"]="apps/citycorners/apps/landing"
|
|
)
|
|
|
|
cd "$PROJECT_ROOT"
|
|
|
|
for name in "${!LANDINGS[@]}"; do
|
|
dir="${LANDINGS[$name]}"
|
|
if [ -d "$dir" ]; then
|
|
echo "Building $name ($dir)..."
|
|
pnpm --filter "./$dir" build 2>&1 | tail -3
|
|
|
|
# Copy dist to output
|
|
if [ -d "$dir/dist" ]; then
|
|
rm -rf "$OUTPUT_DIR/$name"
|
|
cp -r "$dir/dist" "$OUTPUT_DIR/$name"
|
|
echo " → $OUTPUT_DIR/$name ($(du -sh "$OUTPUT_DIR/$name" | cut -f1))"
|
|
else
|
|
echo " ⚠ No dist/ found for $name"
|
|
fi
|
|
else
|
|
echo " ⚠ Directory not found: $dir"
|
|
fi
|
|
echo ""
|
|
done
|
|
|
|
echo "=== Done ==="
|
|
echo ""
|
|
echo "Restart nginx to pick up changes:"
|
|
echo " docker restart mana-infra-landings"
|