This commit is contained in:
10
server.py
10
server.py
@@ -2,15 +2,15 @@ from granian.constants import Interfaces
|
||||
from granian.server import Granian
|
||||
from services.logger import root_logger as logger
|
||||
|
||||
if __name__ == '__main__':
|
||||
logger.info('started')
|
||||
if __name__ == "__main__":
|
||||
logger.info("started")
|
||||
|
||||
granian_instance = Granian(
|
||||
'main:app',
|
||||
address='0.0.0.0', # noqa S104
|
||||
"main:app",
|
||||
address="0.0.0.0", # noqa S104
|
||||
port=8000,
|
||||
threads=4,
|
||||
websockets=False,
|
||||
interface=Interfaces.ASGI
|
||||
interface=Interfaces.ASGI,
|
||||
)
|
||||
granian_instance.serve()
|
||||
|
Reference in New Issue
Block a user