feat: 后端支持托管到 Metrix,启动自动安装并接入平台登录

This commit is contained in:
2026-11-03 12:26:20 +08:00
parent 6b0ea1ed4a
commit c38e649904
12 changed files with 724 additions and 45 deletions
+3 -2
View File
@@ -15,13 +15,14 @@ def main() -> None:
logging.basicConfig(level=logging.INFO)
if sys.platform == "win32":
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
init_db()
ready = init_db()
start_background()
import time
while not postgres_conninfo():
time.sleep(2)
init_db()
if not ready:
init_db()
from app.tasks.queue import serve
serve()