-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathstart_server.sh
More file actions
executable file
·38 lines (30 loc) · 1014 Bytes
/
start_server.sh
File metadata and controls
executable file
·38 lines (30 loc) · 1014 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# First, ensure we have a Python virtual environment
if [ ! -d ".venv" ]; then
echo "Creating Python virtual environment..."
python3 -m venv .venv
# Activate the virtual environment
source .venv/bin/activate
# Upgrade pip and install requirements
echo "Installing Python dependencies..."
pip install --upgrade pip
pip install -r requirements.txt
else
# Activate the virtual environment
source .venv/bin/activate
fi
# Make sure UI directory exists
mkdir -p app/ui
# Install Playwright browsers
if ! command -v playwright &> /dev/null; then
echo "Installing Playwright browsers..."
pip install playwright
playwright install
fi
# Start the UI server directly (not via the Python module)
echo "Starting OpenManus UI Server..."
python3 -c "from app.ui.server import OpenManusUI; server = OpenManusUI(); server.run()"
# Keep the terminal open to see logs
read -p "Press Enter to exit..."
# Deactivate virtual environment on exit
deactivate