배포
This commit is contained in:
commit
d9ef64eafe
35 files changed
+4733
No files matched your search
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# FastAPI 백엔드와 Vue 프론트엔드 개발 서버를 함께 실행하는 스크립트
|
||||
|
||||
cleanup() {
|
||||
echo -e "\n🛑 서버들을 종료합니다..."
|
||||
kill $(jobs -p) 2>/dev/null
|
||||
exit
|
||||
}
|
||||
|
||||
trap cleanup SIGINT SIGTERM EXIT
|
||||
|
||||
echo "🚀 [1/2] FastAPI 백엔드 실행 중 (포트 8000)..."
|
||||
./venv/bin/uvicorn backend.app.main:app --host 0.0.0.0 --port 8000 --reload &
|
||||
|
||||
sleep 1
|
||||
|
||||
echo "🎨 [2/2] Vite 프론트엔드 개발 서버 실행 중 (포트 5173)..."
|
||||
cd frontend && npm run dev
|
||||
|
||||
Reference in new issue
Block a user