inbox/server.py
Untone c8f65ca0c9
Some checks failed
deploy / deploy (push) Failing after 47s
0.3.0+sentry
2024-04-08 09:30:57 +03:00

19 lines
393 B
Python

from granian.constants import Interfaces
from granian.server import Granian
from settings import PORT
if __name__ == "__main__":
print("[server] starting...")
granian_instance = Granian(
"main:app",
address="0.0.0.0", # noqa S104
port=PORT,
threads=2,
websockets=False,
interface=Interfaces.ASGI,
)
granian_instance.serve()