diff --git a/run.py b/run.py new file mode 100644 index 0000000..32345ea --- /dev/null +++ b/run.py @@ -0,0 +1,15 @@ +from granian import Granian +from granian.constants import Interfaces, Loops + +from app.main import app + +server = Granian( + target=app, + address="0.0.0.0", + port=8000, + interface=Interfaces.ASGI, + loop=Loops.uvloop, +) + +if __name__ == "__main__": + server.serve()