19 lines
398 B
Python
19 lines
398 B
Python
from __future__ import annotations
|
|
|
|
import os
|
|
|
|
from waitress import serve
|
|
|
|
from app.main import app
|
|
from app.core_settings import get_settings
|
|
|
|
|
|
if __name__ == "__main__":
|
|
settings = get_settings()
|
|
try:
|
|
threads = int(os.getenv("WAITRESS_THREADS", "8"))
|
|
except (TypeError, ValueError):
|
|
threads = 8
|
|
|
|
serve(app, host=settings.host, port=settings.port, threads=threads)
|