Files
solar-pv-dashboard/backend/run_prod.py
Mateusz Gruszczyński c5cc2efbac first commit
2026-03-23 15:56:18 +01:00

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)