mirror of
https://github.com/FutureOfMedTech-FITM-hack/backend.git
synced 2024-11-22 14:36:33 +03:00
21 lines
433 B
Python
21 lines
433 B
Python
|
import uvicorn
|
||
|
|
||
|
from med_backend.settings import settings
|
||
|
|
||
|
|
||
|
def main() -> None:
|
||
|
"""Entrypoint of the application."""
|
||
|
uvicorn.run(
|
||
|
"med_backend.web.application:get_app",
|
||
|
workers=settings.workers_count,
|
||
|
host=settings.host,
|
||
|
port=settings.port,
|
||
|
reload=settings.reload,
|
||
|
log_level=settings.log_level.value.lower(),
|
||
|
factory=True,
|
||
|
)
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
main()
|