feat: base flask x gunicorn server
Python Lint CI / ruff-format-check (push) Successful in 1m21s
Python Lint CI / ruff (push) Successful in 1m21s
Python Lint CI / ty (push) Successful in 1m29s

This commit is contained in:
2026-06-30 17:09:16 +02:00
parent e19a9cfdcc
commit 83c8e4415b
8 changed files with 299 additions and 46 deletions
+5 -3
View File
@@ -1,13 +1,15 @@
import logging
import sys
from . import PKG_NAME, PKG_VERSION
from .logs import setup_logs
from .params import parse_parameters
from app import PKG_NAME, PKG_VERSION
from app.logs import setup_logs
from app.params import parse_parameters
from app.server import Server
def main() -> int:
params = parse_parameters(sys.argv[1:])
setup_logs(params)
logging.getLogger().info("%s %s", PKG_NAME, PKG_VERSION)
Server(params).register_routes().start()
return 0