refactored
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import uvicorn
|
||||
from settings import PORT, INBOX_SERVICE_PORT
|
||||
from settings import PORT
|
||||
|
||||
import sys
|
||||
|
||||
@@ -16,8 +16,5 @@ if __name__ == '__main__':
|
||||
("Access-Control-Allow-Credentials", "true")
|
||||
]
|
||||
uvicorn.run("main:app", host="localhost", port=8080, headers=headers) #, ssl_keyfile="discours.key", ssl_certfile="discours.crt", reload=True)
|
||||
elif inbox_service:
|
||||
print("INBOX SERVICE")
|
||||
uvicorn.run("inbox_main:app", host="0.0.0.0", port=INBOX_SERVICE_PORT)
|
||||
else :
|
||||
uvicorn.run("main:app", host="0.0.0.0", port=PORT)
|
||||
|
Reference in New Issue
Block a user