emailhelper-api-v0.1/gunicorn.conf.py

9 lines
192 B
Python

from config.project_config import PROJECT_PORT
# 并行工作进程数
workers = 10
# 监听内网端口
bind = '0.0.0.0:{}'.format(PROJECT_PORT)
# 工作模式协程
worker_class = 'gevent'