2021-04-12 12:41:14 +08:00
|
|
|
from config.project_config import PROJECT_PORT
|
|
|
|
|
2021-04-12 00:21:07 +08:00
|
|
|
# 并行工作进程数
|
2021-04-12 12:41:14 +08:00
|
|
|
workers = 10
|
|
|
|
# 监听内网端口
|
|
|
|
bind = '0.0.0.0:{}'.format(PROJECT_PORT)
|
2021-04-12 00:21:07 +08:00
|
|
|
# 工作模式协程
|
|
|
|
worker_class = 'gevent'
|