https://github.com/byceps/byceps
Raw File
Tip revision: 7913dde815baf4681bec67f937becfb4b5f89298 authored by Jochen Kupperschmidt on 08 April 2024, 07:20:43 UTC
Tweak user profile header styling
Tip revision: 7913dde
serve_apps.py
"""
Serve multiple apps together.

:Copyright: 2014-2024 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""

import sys

import structlog

from byceps.app_dispatcher import create_dispatcher_app, get_apps_config
from byceps.util.result import Err, Ok


logger = structlog.get_logger()


match get_apps_config():
    case Ok(apps_config):
        app = create_dispatcher_app(apps_config)
    case Err(e):
        logger.error(e)
        sys.exit(1)
back to top