Change listening address
This commit is contained in:
parent
ab0ec1badc
commit
313a1ba43d
1 changed files with 4 additions and 1 deletions
5
main.py
5
main.py
|
@ -2,5 +2,8 @@ import sys
|
|||
|
||||
from core.wrapper import Wrapper
|
||||
|
||||
api = Wrapper(['gunicorn', "-k", "uvicorn.workers.UvicornWorker", "--log-config", "log.conf", 'api:api'], sys.stdout)
|
||||
api = Wrapper(['gunicorn', "-k", "uvicorn.workers.UvicornWorker",
|
||||
"--log-config", "log.conf",
|
||||
'--bind', '0.0.0.0:8000',
|
||||
'api:api'], sys.stdout)
|
||||
api.start()
|
||||
|
|
Loading…
Reference in a new issue