18 lines
462 B
Bash
18 lines
462 B
Bash
#!/bin/bash
|
|
# Startup script for Python service
|
|
|
|
# Activate virtual environment if it exists
|
|
if [ -d "venv" ]; then
|
|
# Try Windows Scripts path first (Git Bash on Windows)
|
|
if [ -f "venv/Scripts/activate" ]; then
|
|
source venv/Scripts/activate
|
|
# Fallback to Unix bin path (Linux/macOS)
|
|
elif [ -f "venv/bin/activate" ]; then
|
|
source venv/bin/activate
|
|
fi
|
|
fi
|
|
|
|
# Start the service
|
|
uvicorn main:app --host 0.0.0.0 --port 8010 --reload
|
|
|