mirror of
https://github.com/FireRedTeam/FireRed-OpenStoryline.git
synced 2026-08-28 18:51:38 +08:00
1a19e6ab39
* add aliyun docker registry * change python3 to python
20 lines
323 B
Bash
Executable File
20 lines
323 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
ROOT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
export PYTHONPATH="$ROOT_DIR/src"
|
|
|
|
HOST="${HOST:-0.0.0.0}"
|
|
PORT="${PORT:-7860}"
|
|
|
|
python -m open_storyline.mcp.server &
|
|
MCP_PID=$!
|
|
|
|
uvicorn agent_fastapi:app \
|
|
--host "$HOST" \
|
|
--port "$PORT" &
|
|
WEB_PID=$!
|
|
|
|
trap 'kill $MCP_PID $WEB_PID' INT TERM
|
|
|
|
wait |