From ea74f7e6785c8f572af821aa3e00530f5ec767d8 Mon Sep 17 00:00:00 2001 From: wuhao <15392746632@qq.com> Date: Mon, 14 Sep 2020 17:16:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=9F=E4=BA=A7=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index b44b201..6d23288 100644 --- a/config.py +++ b/config.py @@ -5,7 +5,7 @@ from loguru import logger BASE_DIR = os.path.dirname(os.path.abspath(__file__)) logger.add(os.path.join(BASE_DIR, 'log.log'), format="{time} {level} {name}:{line} {message}", level="INFO", - rotation="50 MB", retention='7 days', + rotation="100 MB", retention='7 days', enqueue=True) @@ -327,5 +327,14 @@ class DevConfig(Config): }, } +class ProductionConfig(Config): + GAME_MANA_MYSQLDB = { + "host": "127.0.0.1", + "port": 3306, + "user": "root", + "password": "iamciniao", + "db": "gamemana" + } -settings = Config() + +settings = ProductionConfig()