mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
feat(infra+ui): deploy script v2, schema push, SyncIndicator component
Deploy scripts for new architecture + floating sync status pill UI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7dd8fa869f
commit
899f615f40
4 changed files with 302 additions and 0 deletions
39
scripts/mac-mini/push-schemas.sh
Executable file
39
scripts/mac-mini/push-schemas.sh
Executable file
|
|
@ -0,0 +1,39 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Push Drizzle schemas to all service databases
|
||||
# Run after databases are created (deploy-v2.sh handles this)
|
||||
#
|
||||
# Usage: ./scripts/mac-mini/push-schemas.sh
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
||||
|
||||
GREEN='\033[0;32m'
|
||||
RED='\033[0;31m'
|
||||
NC='\033[0m'
|
||||
|
||||
echo "=== Push Drizzle Schemas ==="
|
||||
echo ""
|
||||
|
||||
push_schema() {
|
||||
local name=$1
|
||||
local dir=$2
|
||||
echo -n " $name... "
|
||||
if (cd "$PROJECT_ROOT/$dir" && bun run db:push 2>/dev/null); then
|
||||
echo -e "${GREEN}OK${NC}"
|
||||
else
|
||||
echo -e "${RED}FAILED${NC}"
|
||||
fi
|
||||
}
|
||||
|
||||
echo "Core Services:"
|
||||
push_schema "mana-auth" "services/mana-auth"
|
||||
push_schema "mana-credits" "services/mana-credits"
|
||||
push_schema "mana-user" "services/mana-user"
|
||||
push_schema "mana-subscriptions" "services/mana-subscriptions"
|
||||
push_schema "mana-analytics" "services/mana-analytics"
|
||||
|
||||
echo ""
|
||||
echo "Done. mana-sync creates its schema automatically on startup."
|
||||
Loading…
Add table
Add a link
Reference in a new issue