Add backend/frontend scaffolding with Oracle ADB wallet config
- Backend: Spring Boot 3 + WebFlux, JWT auth, Oracle ADB wallet, 8 controllers/services/repositories (Auth~Tag), DTOs, exception handling - Frontend: Next.js 15, TypeScript, Tailwind CSS, AuthContext, 7 pages (dashboard, knowledge, chat, study, todos, habits, login) - DB: V1 migration with 12 tables including VECTOR(1024) + HNSW index - Ops: PM2 ecosystem config, deploy.sh, start-backend.sh - CLAUDE.md: DB credentials replaced with env var references Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
33
deploy.sh
Executable file
33
deploy.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "=== SUNDOL Deploy ==="
|
||||
|
||||
# Load env
|
||||
set -a
|
||||
source .env
|
||||
set +a
|
||||
|
||||
# Build backend
|
||||
echo "[1/4] Building backend..."
|
||||
cd sundol-backend
|
||||
mvn package -q -DskipTests
|
||||
cd ..
|
||||
|
||||
# Build frontend
|
||||
echo "[2/4] Building frontend..."
|
||||
cd sundol-frontend
|
||||
npm run build
|
||||
cd ..
|
||||
|
||||
# Git push
|
||||
echo "[3/4] Pushing to git..."
|
||||
git add -A
|
||||
git commit -m "Deploy $(date +%Y%m%d-%H%M%S)" || true
|
||||
git push origin main
|
||||
|
||||
# Restart PM2
|
||||
echo "[4/4] Restarting services..."
|
||||
pm2 restart ecosystem.config.cjs
|
||||
|
||||
echo "=== Deploy complete ==="
|
||||
Reference in New Issue
Block a user