From 7049f3d008273c65906a5f1501a930f79af44723 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Tue, 24 Oct 2023 18:08:45 +0800 Subject: [PATCH] fix: adjust gunicorn.conf.py --- gunicorn.conf.py | 8 ++++---- requirements.txt | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gunicorn.conf.py b/gunicorn.conf.py index 39560ce..ffcb2a0 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -1,12 +1,12 @@ import multiprocessing -# from gevent import monkey -# monkey.patch_all() +from gevent import monkey + +monkey.patch_all() preload_app = True bind = "0.0.0.0:5000" -# worker_class = 'gevent' -worker_class = 'egg:meinheld#gunicorn_worker' +worker_class = 'gevent' # 设置最大并发量 daemon = False debug = False diff --git a/requirements.txt b/requirements.txt index 359bef4..cd6923f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ git+https://gitea.bearcatlog.com/BryantStudio/chassis.git@main#egg=chassis[apiflask,nameko] -psutil -meinheld==1.0.2 \ No newline at end of file +psutil \ No newline at end of file