add logging and database migration

This commit is contained in:
hansi
2025-11-29 00:15:41 +01:00
parent 6f9c5eb34e
commit fe33d714bd
10 changed files with 288 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
from version import __version__
from logging_config import setup_logging
import os
from migrate import apply_migrations
APP_ENV = os.environ.get("APP_ENV", "dev")
logger = setup_logging(APP_ENV)
logger.info(f"Starting app in {APP_ENV} mode - APP-Version {__version__}")
apply_migrations()