16 lines
278 B
Python
16 lines
278 B
Python
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()
|