feat: 添加portal启动脚本start.py
This commit is contained in:
parent
3b67cb0cf0
commit
6d679a0f1d
14
start.py
Normal file
14
start.py
Normal file
@ -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()
|
||||||
Loading…
x
Reference in New Issue
Block a user