From cb3ed1598db263f562033da5255efbae3cb67ade Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 12 Sep 2024 10:58:09 +0200 Subject: [PATCH] doh (cherry picked from commit c6c4c09f08fdd130105c04d3e529f0fcda956f65) --- core/admin/start.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/start.py b/core/admin/start.py index 2fc8fb40..07db30fe 100755 --- a/core/admin/start.py +++ b/core/admin/start.py @@ -64,7 +64,7 @@ test_unsupported() cmdline = [ "gunicorn", - "--threads", f"{CPU_COUNT}", + "--threads", f"{os.environ.get('CPU_COUNT', 1)}", # If SUBNET6 is defined, gunicorn must listen on IPv6 as well as IPv4 "-b", f"{'[::]' if os.environ.get('SUBNET6') else '0.0.0.0'}:8080", "--logger-class mailu.Logger",