mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
try: use bjoern wsgi
This commit is contained in:
@@ -6,6 +6,7 @@ import logging
|
||||
import os
|
||||
import psutil
|
||||
import waitress
|
||||
import bjoern
|
||||
import mimetypes
|
||||
import setproctitle
|
||||
|
||||
@@ -237,11 +238,13 @@ if __name__ == "__main__":
|
||||
host = FLASKVARS.get_flask_host()
|
||||
port = FLASKVARS.get_flask_port()
|
||||
|
||||
waitress.serve(
|
||||
app,
|
||||
host=host,
|
||||
port=port,
|
||||
threads=100,
|
||||
ipv6=True,
|
||||
ipv4=True,
|
||||
)
|
||||
# waitress.serve(
|
||||
# app,
|
||||
# host=host,
|
||||
# port=port,
|
||||
# threads=100,
|
||||
# ipv6=True,
|
||||
# ipv4=True,
|
||||
# )
|
||||
# app.run(host=host, port=port, debug=False)
|
||||
bjoern.run(app, host, port)
|
||||
|
||||
Reference in New Issue
Block a user