This commit is contained in:
midoks 2018-12-13 01:09:38 +08:00
parent 133e587f6b
commit a601123cdf
2 changed files with 6 additions and 2 deletions

View File

@ -10,7 +10,7 @@ from flask import Flask
from datetime import timedelta
sys.path.append(os.getcwd() + "/class/core")
sys.setdefaultencoding('utf-8')
# sys.setdefaultencoding('utf-8')
import db
import public

View File

@ -3,13 +3,17 @@ import time
import sys
sys.path.append(os.getcwd() + '/class/core')
import public
import system_api
cpu_info = system_api.system_api().getCpuInfo()
if not os.path.exists(os.getcwd() + '/logs'):
os.mkdir(os.getcwd() + '/logs')
bt_port = public.readFile('data/port.pl')
bind = ['0.0.0.0:%s' % bt_port]
workers = 1
workers = cpu_info[1] + 1
threads = 1
backlog = 512
reload = False