fix: add npm install and expose pip install errors in start_server.sh

This commit is contained in:
2026-04-18 13:22:48 +00:00
parent ef754c3375
commit f74a17485f

View File

@@ -32,7 +32,7 @@ source .venv/bin/activate
# 3. Check and Install Backend Dependencies
echo "📦 Updating Python dependencies..."
pip install -q -r backend/requirements.txt
pip install -r backend/requirements.txt
# 4. Get Local IP and set environment variables
LOCAL_IP=$(hostname -I | awk '{print $1}' || echo "localhost")
@@ -64,6 +64,8 @@ python3 -m uvicorn backend.main:app --host 0.0.0.0 --port $BACKEND_PORT --reload
# 5. Start Frontend (Next.js)
echo "💻 Starting Frontend on port $FRONTEND_PORT..."
cd frontend
echo "📦 Installing frontend dependencies..."
npm install
npm run dev -- -p $FRONTEND_PORT &
cd ..