18 lines
349 B
Python
18 lines
349 B
Python
from __future__ import annotations
|
|
|
|
import logging
|
|
|
|
from aiohttp import web
|
|
|
|
from .app import create_app
|
|
from .config import Settings
|
|
|
|
|
|
def main() -> None:
|
|
logging.basicConfig(level=logging.INFO)
|
|
settings = Settings.from_env()
|
|
web.run_app(create_app(settings), host="0.0.0.0", port=settings.port)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|