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()