From 33cd9ada578df1d09f472038953f63ab7853fc5b Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 12 Nov 2021 19:08:08 +0800 Subject: [PATCH] update --- class/core/mw.py | 2 +- class/core/plugins_api.py | 1 - cli.sh | 3 ++- scripts/init.d/mw.tpl | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/class/core/mw.py b/class/core/mw.py index 156f56227..1ab885308 100755 --- a/class/core/mw.py +++ b/class/core/mw.py @@ -284,7 +284,7 @@ def readFile(filename): fp.close() return fBody except Exception as e: - # print('readFile:', e) + #print('readFile:', e) return False diff --git a/class/core/plugins_api.py b/class/core/plugins_api.py index bd11f1315..22ee4d082 100755 --- a/class/core/plugins_api.py +++ b/class/core/plugins_api.py @@ -8,7 +8,6 @@ import re import json import sys - # reload(sys) # sys.setdefaultencoding('utf8') diff --git a/cli.sh b/cli.sh index 9e30ec58b..0a293daa8 100755 --- a/cli.sh +++ b/cli.sh @@ -4,11 +4,12 @@ DIR=$(cd "$(dirname "$0")"; pwd) MDIR=$(dirname "$DIR") PATH=$PATH:$DIR/bin - if [ -f bin/activate ];then source bin/activate fi +export LC_ALL="en_US.UTF-8" + mw_start(){ gunicorn -c setting.py app:app python3 task.py & diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index 3d1210614..50a949ac9 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -24,6 +24,8 @@ else echo "" fi +export LC_ALL="en_US.UTF-8" + mw_start(){ isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'`