File size: 556 Bytes
82bf89e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

# Review Service Startup Script

echo "🚀 Starting Review service..."

# Get script directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# Set environment variables
export PYTHONPATH="$SCRIPT_DIR"

# Check Python environment
if ! command -v python3 &> /dev/null; then
    echo "❌ Python3 not installed"
    exit 1
fi

# Check dependencies
if [ ! -f "requirement.txt" ]; then
    echo "⚠️ requirement.txt file not found"
    exit 1
fi

# Start service
echo "📡 Starting Review service on port 8880..."
python3 main.py