run.sh 326 B

12345678
  1. #!/bin/sh
  2. # 观澜 · 模块运行入口(P9):用安装根的解释器启动全部服务(等同 python guanlan.py serve)。
  3. set -e
  4. HERE=$(cd "$(dirname "$0")" && pwd)
  5. ROOT=$(cd "$HERE/.." && pwd)
  6. PY="$ROOT/.venv/bin/python"
  7. [ -x "$PY" ] || PY="$ROOT/.venv/Scripts/python.exe"
  8. exec "$PY" "$ROOT/guanlan.py" serve "$@"