feat(planning): ship holiday-aware planning and assistant upgrades

This commit is contained in:
2026-03-28 22:49:28 +01:00
parent 2a005794e7
commit 4f48afe7b4
151 changed files with 17738 additions and 1940 deletions
+9 -18
View File
@@ -2,7 +2,7 @@
set -euo pipefail
cd "$(dirname "$0")/.."
echo "Starting Planarchy..."
echo "Starting CapaKraken..."
# 1. Start Docker services
echo " Starting PostgreSQL + Redis..."
@@ -12,40 +12,31 @@ sleep 2
# 2. Wait for PostgreSQL to be healthy
echo " Waiting for PostgreSQL..."
for i in {1..30}; do
if docker exec capakraken-postgres-1 pg_isready -U capakraken -q 2>/dev/null; then
if docker compose exec -T postgres pg_isready -U capakraken -d capakraken -q 2>/dev/null; then
break
fi
sleep 1
done
# 3. Regenerate Prisma client
echo " Generating Prisma client..."
pnpm --filter @capakraken/db exec prisma generate --no-hints 2>/dev/null
# 3. Start the web app in Docker for a stable lifecycle
echo " Starting app container on port 3100..."
docker compose --profile full up -d app
# 4. Clear stale Next.js cache
rm -rf apps/web/.next
# 5. Start Next.js dev server
echo " Starting Next.js on port 3100..."
nohup pnpm --filter @capakraken/web dev > /tmp/capakraken-dev.log 2>&1 &
echo $! > /tmp/capakraken-dev.pid
# 6. Wait for server to be ready
# 4. Wait for server to be ready
echo " Waiting for server..."
for i in {1..30}; do
if curl -sf http://localhost:3100/api/health > /dev/null 2>&1; then
echo ""
echo "Planarchy is running!"
echo "CapaKraken is running!"
curl -s http://localhost:3100/api/ready | python3 -m json.tool 2>/dev/null || curl -s http://localhost:3100/api/ready
echo ""
echo " URL: http://localhost:3100"
echo " Logs: tail -f /tmp/capakraken-dev.log"
echo " PID: $(cat /tmp/capakraken-dev.pid)"
echo " Logs: docker logs -f capakraken-app-1"
exit 0
fi
sleep 1
done
echo "ERROR: Server failed to start within 30 seconds"
echo "Check logs: tail -50 /tmp/capakraken-dev.log"
echo "Check logs: docker logs --tail 100 capakraken-app-1"
exit 1