notifier/server.py
Untone e942d82412
All checks were successful
Deploy to v2 / deploy (push) Successful in 2m9s
merged
2024-02-18 10:47:07 +03:00

19 lines
407 B
Python

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