Files

18 lines
338 B
Python

"""Production entry point."""
from __future__ import annotations
import os
from waitress import serve
from .web import create_app
if __name__ == "__main__":
serve(
create_app(),
host=os.environ.get("SERVER_MAINTENANCE_HOST", "0.0.0.0"),
port=int(os.environ.get("SERVER_MAINTENANCE_PORT", "8080")),
)