init
This commit is contained in:
14
web/server_waitress.py
Normal file
14
web/server_waitress.py
Normal 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)
|
||||
)
|
Reference in New Issue
Block a user