mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
remove gevent entirely
This commit is contained in:
parent
31369f0852
commit
f6ec5ad34c
2 changed files with 4 additions and 8 deletions
|
@ -1,5 +1,7 @@
|
||||||
|
import multiprocessing
|
||||||
|
|
||||||
workers = 1
|
workers = multiprocessing.cpu_count() * 2 + 1
|
||||||
|
threads = multiprocessing.cpu_count() * 2 + 1
|
||||||
|
|
||||||
worker_tmp_dir = '/dev/shm'
|
worker_tmp_dir = '/dev/shm'
|
||||||
|
|
||||||
|
@ -7,7 +9,7 @@ bind = '0.0.0.0:5000'
|
||||||
umask = 0o007
|
umask = 0o007
|
||||||
reload = False
|
reload = False
|
||||||
|
|
||||||
worker_class = 'gevent'
|
worker_class = 'gthread'
|
||||||
|
|
||||||
#logging
|
#logging
|
||||||
accesslog = '-'
|
accesslog = '-'
|
||||||
|
|
|
@ -1,11 +1,5 @@
|
||||||
# This file is part of pyfedi, which is licensed under the GNU General Public License (GPL) version 3.0.
|
# This file is part of pyfedi, which is licensed under the GNU General Public License (GPL) version 3.0.
|
||||||
# You should have received a copy of the GPL along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# You should have received a copy of the GPL along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
import os
|
|
||||||
|
|
||||||
if os.environ.get('FLASK_ENV', '') != 'development':
|
|
||||||
from gevent import monkey
|
|
||||||
monkey.patch_all()
|
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from flask_babel import get_locale
|
from flask_babel import get_locale
|
||||||
|
|
Loading…
Reference in a new issue