TypeScript 61.9%
HTML 37.2%
SQL 0.7%
1#!/usr/bin/env bash2# Deploy RareIndex to the MacLustr cluster through the mld gateway (M1M32).3# Usage: scripts/deploy.sh [--node M3U96a]4# Manifest: M1M32:~/dispatch/apps/rareindex.json (secrets live there, never in the repo).5set -euo pipefail6ROOT="$(cd "$(dirname "$0")/.." && pwd)"7MLD="$HOME/Desktop/cluster-skill/mld"8NODE_ARG=()9if [[ "${1:-}" == "--node" && -n "${2:-}" ]]; then NODE_ARG=(--node "$2"); fi1011echo "▶ typecheck + tests"12(cd "$ROOT" && pnpm -r --filter './packages/**' run typecheck >/dev/null && pnpm test >/dev/null) || { echo "✗ checks failed"; exit 1; }13echo "▶ registry"14(cd "$ROOT" && pnpm tsx scripts/build-registry.ts)15echo "▶ stage → gateway"16"$MLD" stage "$ROOT" rareindex17echo "▶ deploy"18"$MLD" deploy rareindex "${NODE_ARG[@]}"19echo "▶ status"20"$MLD" status | grep -E "^app|rareindex" || true21