hack-house/cmd_chat/server/server.py
2026-01-03 12:00:52 +03:00

20 lines
375 B
Python

from typing import Optional
from .factory import create_app
def run_server(
host: str = "0.0.0.0",
port: int = 8000,
password: Optional[str] = None,
workers: int = 1,
) -> None:
app = create_app(password=password or "")
app.run(
host=host,
port=port,
single_process=True,
debug=False,
access_log=True,
)