lanpartyplayspokemon/backend/backend/__main__.py

21 lines
318 B
Python

import asyncio
from hypercorn.config import Config
from hypercorn.asyncio import serve
from .web import app
from .pag import Runner
config = Config()
config.bind = ["0.0.0.0:8000"]
pag_runner = Runner()
pag_runner.start()
asyncio.run(serve(app, config))
pag_runner.stop()
print("stopping...")
pag_runner.join()