17 lines
457 B
Bash
Executable File
17 lines
457 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Navigate to the backend directory
|
|
cd "$(dirname "$0")/backend" || exit
|
|
|
|
# Activate the virtual environment
|
|
if [ -d "venv" ]; then
|
|
echo "Activating virtual environment..."
|
|
source venv/bin/activate
|
|
else
|
|
echo "Warning: Virtual environment 'venv' not found. Attempting to run without it..."
|
|
fi
|
|
|
|
# Run the FastAPI server
|
|
echo "Starting OCR Backend Server on http://0.0.0.0:8000..."
|
|
uvicorn main:app --reload --host 0.0.0.0 --port 8000
|