feat: 后端支持托管到 Metrix,启动自动安装并接入平台登录
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user