fix:修复页面bug

This commit is contained in:
丹尼尔
2026-03-11 12:21:25 +08:00
parent dae013dbeb
commit 6da73da8d7
6 changed files with 177 additions and 60 deletions

View File

@@ -10,7 +10,7 @@ uvicorn backend.main:app --host 0.0.0.0 --port "${BACKEND_PORT}" &
BACKEND_PID=$!
echo "Starting Node static frontend on :${PORT}..."
node dist/server.js &
PORT="${PORT}" BACKEND_PORT="${BACKEND_PORT}" node dist/server.js &
FRONTEND_PID=$!
trap 'echo "Stopping services..."; kill ${BACKEND_PID} ${FRONTEND_PID} 2>/dev/null || true' INT TERM