update
This commit is contained in:
parent
133e587f6b
commit
a601123cdf
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue