mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复无法流式输出 (#820)
This commit is contained in:
parent
6ed619f00b
commit
c465ddff19
|
|
@ -30,10 +30,10 @@ class Command(BaseCommand):
|
|||
def handle(self, *args, **options):
|
||||
log_format = '%(h)s %(t)s %(L)ss "%(r)s" %(s)s %(b)s '
|
||||
cmd = [
|
||||
'gunicorn', 'smartdoc.asgi:application',
|
||||
'gunicorn', 'smartdoc.wsgi:application',
|
||||
'-b', options.get('b') if options.get('b') is not None else '0.0.0.0:8080',
|
||||
'-k', options.get('k') if options.get('k') is not None else 'uvicorn.workers.UvicornWorker',
|
||||
'-w', options.get('w') if options.get('w') is not None else '5',
|
||||
'-k', options.get('k') if options.get('k') is not None else 'gunicorn.workers.sync.SyncWorker',
|
||||
'-w', options.get('w') if options.get('w') is not None else '1',
|
||||
'--max-requests', options.get('max_requests') if options.get('max_requests') is not None else '10240',
|
||||
'--max-requests-jitter',
|
||||
options.get('max_requests_jitter') if options.get('max_requests_jitter') is not None else '2048',
|
||||
|
|
|
|||
Loading…
Reference in New Issue