From 12d5ce5eeaf03d72434213ac0ffade5ae5402a93 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 28 Nov 2024 19:31:45 +0800 Subject: [PATCH] update --- cli.sh | 5 +++-- web/setting.py | 4 ---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cli.sh b/cli.sh index 6c0fbf97c..fc9ef386f 100755 --- a/cli.sh +++ b/cli.sh @@ -39,9 +39,10 @@ mw_start_task() } mw_start(){ - cd ${DIR}/web && gunicorn -c setting.py app:app - #安全启动 + # 后台任务 mw_start_task + + cd ${DIR}/web && gunicorn -c setting.py app:app } diff --git a/web/setting.py b/web/setting.py index ddb8d5566..217801034 100755 --- a/web/setting.py +++ b/web/setting.py @@ -12,10 +12,6 @@ # 配置文件 # --------------------------------------------------------------------------------- -# 初始化db -from admin import setup -setup.init() - import time import sys import random