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