pull/109/head
midoks 4 years ago
parent 103da95717
commit 33cd9ada57
  1. 2
      class/core/mw.py
  2. 1
      class/core/plugins_api.py
  3. 3
      cli.sh
  4. 2
      scripts/init.d/mw.tpl

@ -284,7 +284,7 @@ def readFile(filename):
fp.close()
return fBody
except Exception as e:
# print('readFile:', e)
#print('readFile:', e)
return False

@ -8,7 +8,6 @@ import re
import json
import sys
# reload(sys)
# sys.setdefaultencoding('utf8')

@ -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 &

@ -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}'`

Loading…
Cancel
Save