fix: add npm install and expose pip install errors in start_server.sh
This commit is contained in:
@@ -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 ..
|
||||
|
||||
|
||||
Reference in New Issue
Block a user