Agent 2.0 exdev 서버 배포 스택
- server-dev start/stop/deploy 및 Gitea push 자동 배포 - local-dev 로컬 개발 환경 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Executable
+40
@@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "🔄 Git 저장소 재초기화 (큰 파일 제거)"
|
||||
|
||||
# 1. 현재 변경사항 확인
|
||||
git status
|
||||
|
||||
# 2. 수정된 파일 커밋
|
||||
if [ -n "$(git diff --name-only)" ]; then
|
||||
echo "📝 수정된 파일 커밋 중..."
|
||||
git add scripts/chat_history.py
|
||||
git commit -m "perf: MongoDB connection pooling and index optimization"
|
||||
fi
|
||||
|
||||
# 3. .git 백업 (선택사항)
|
||||
echo "💾 .git 디렉토리 백업 중..."
|
||||
mv .git .git.backup
|
||||
|
||||
# 4. 새 저장소 초기화
|
||||
echo "🆕 새 Git 저장소 초기화..."
|
||||
git init
|
||||
git remote add origin https://github.com/KoreaExpressWayCorp/exAiChatBot.git
|
||||
|
||||
# 5. 현재 파일 커밋 (.gitignore 적용됨)
|
||||
echo "✅ 현재 파일 커밋 (큰 파일 제외)..."
|
||||
git add .
|
||||
git commit -m "init: RAG system with MongoDB optimization
|
||||
|
||||
- Query Rewriting with two-tier threshold
|
||||
- MongoDB connection pooling (maxPoolSize=50)
|
||||
- Chat history management (24h query, 30d storage)
|
||||
- Smart skip logic for embedding/indexing
|
||||
- FAISS vector store with reranking"
|
||||
|
||||
# 6. 강제 푸시
|
||||
echo "🚀 GitHub에 푸시 중..."
|
||||
git push -f origin main
|
||||
|
||||
echo "✅ 완료! 깨끗한 Git 히스토리로 재시작되었습니다."
|
||||
Reference in New Issue
Block a user