first commit

This commit is contained in:
Mateusz Gruszczyński
2026-03-23 15:56:18 +01:00
commit c5cc2efbac
106 changed files with 10254 additions and 0 deletions

18
backend/run_prod.py Normal file
View File

@@ -0,0 +1,18 @@
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)