This commit is contained in:
han0
2024-05-29 10:21:31 +08:00
commit 54ac29d27b
119 changed files with 6817 additions and 0 deletions

14
web/server_waitress.py Normal file
View File

@@ -0,0 +1,14 @@
from os import cpu_count
from waitress import serve
from core.app import app
from core.conf import PORT
if __name__ == '__main__':
serve(
app,
host='0.0.0.0',
port=PORT,
threads=int(cpu_count()) # int(2 * cpu_count() + 1)
)