From 6d679a0f1d3ca8bc0e1c121753b1fb902ebed038 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Tue, 16 Jun 2026 13:41:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0portal=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E8=84=9A=E6=9C=ACstart.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 start.py diff --git a/start.py b/start.py new file mode 100644 index 0000000..74f6f7a --- /dev/null +++ b/start.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 +"""Portal启动脚本""" +import os +import sys + +# 使用venv的ahserver +sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'pkgs')) + +from ahserver.configuredServer import ConfiguredServer +from ahserver.auth_api import AuthAPI + +if __name__ == '__main__': + server = ConfiguredServer(AuthAPI, workdir=os.path.dirname(os.path.abspath(__file__))) + server.run()