Skip to content

Commit 067e747

Browse files
Install python backend dependencies script.
The script has been updated to correctly install Python backend dependencies using the proper path "backend/requirements.txt". The original suggestion to use "../backend" was incorrect as it would have looked in the wrong location. The updated script will now properly install dependencies before starting the backend service, ensuring all required packages are available when the backend starts.
1 parent 0f94732 commit 067e747

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

start.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ fi
5252
# Create a log directory
5353
mkdir -p logs
5454

55+
# Install Python backend dependencies
56+
echo -e "${BLUE}Installing Python backend dependencies...${NC}"
57+
if [ -f "backend/requirements.txt" ]; then
58+
cd "backend"
59+
python3 -m venv venv
60+
source venv/bin/activate
61+
pip install -r requirements.txt
62+
cd "$ROOT_DIR"
63+
else
64+
echo -e "${RED}Error: requirements.txt not found in backend directory${NC}"
65+
exit 1
66+
fi
67+
5568
# Start Next.js frontend on port 3001
5669
echo -e "${BLUE}Starting Next.js frontend...${NC}"
5770
PORT=3001 npm run dev > logs/frontend.log 2>&1 &

0 commit comments

Comments
 (0)