#!/bin/bash # 1. DB가 없으면(또는 새로 시작할 때마다) 데이터 적재 실행 echo "🚀 Building Vector DB and Index..." python ingest.py # 2. FastAPI 서버를 백그라운드(&)로 실행 echo "🚀 Starting Backend Server..." python server.py & # 3. 서버 안정화를 위해 10초 대기 (모델 다운로드 시간 고려) sleep 10 # 4. Streamlit 앱 실행 echo "🚀 Starting Frontend App..." streamlit run app.py --server.port=7860 --server.address=0.0.0.0