15 lines
475 B
Bash
Executable File
15 lines
475 B
Bash
Executable File
#!/bin/bash
|
|
# DeerFlow start — wired by Opus 9avr
|
|
cd /opt/deer-flow
|
|
export PATH="/opt/deer-flow/backend/.venv/bin:$PATH"
|
|
|
|
# Check if already running
|
|
if pgrep -f "langgraph.*2024" > /dev/null; then
|
|
echo "DeerFlow already running"
|
|
exit 0
|
|
fi
|
|
|
|
# Start backend
|
|
cd /opt/deer-flow && nohup bash -c "source backend/.venv/bin/activate && cd backend && python -m langgraph dev --host 0.0.0.0 --port 2024" > /var/log/deerflow-api.log 2>&1 &
|
|
echo "DeerFlow API started PID=$!"
|