#!/bin/bash cd /c/Users/dash/Documents/GitHub/Dash-Web/src/server # cd /c/Users/dash/Documents/Dash-Web instead for dash-release echo "Navigating to the Python chunker directory..." cd chunker/ # Step 3: Set up Python virtual environment (if it doesn't exist, create it) if [ ! -d "venv" ]; then echo "Creating Python virtual environment..." python3 -m venv venv fi # Step 4: Activate the Python virtual environment echo "Activating Python virtual environment..." source venv/bin/activate # Step 5: Install Python dependencies echo "Installing Python dependencies..." pip install -r requirements.txt # Step 6: Go back to the main directory where the Node.js app will run cd .. # Step 7: Load environment variables from .env file (if it exists) if [ -f .env ]; then echo "Loading environment variables from .env file..." export $(grep -v '^#' .env | xargs) else echo ".env file not found, skipping environment variable loading." fi cd /c/Users/dash/Documents/GitHub/Dash-Web # cd /c/Users/dash/Documents/Dash-Web instead for dash-release npm run start-release # works for browndash