Refactors Project for More Declarative Package Name
This commit is contained in:
14
storage_service/__main__.py
Normal file
14
storage_service/__main__.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from storage_service.config.config_server import get_config_server
|
||||
from storage_service.controller import app
|
||||
|
||||
import uvicorn
|
||||
|
||||
|
||||
def main():
|
||||
config = get_config_server()
|
||||
|
||||
uvicorn.run(app, host=config["host"], port=config["port"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user