mirror of
https://github.com/trushildhokiya/allininx-2.git
synced 2025-03-15 10:28:40 +00:00
21 lines
418 B
Python
21 lines
418 B
Python
|
import uvicorn
|
||
|
|
||
|
from reworkd_platform.settings import settings
|
||
|
|
||
|
|
||
|
def main() -> None:
|
||
|
"""Entrypoint of the application."""
|
||
|
uvicorn.run(
|
||
|
"reworkd_platform.web.application:get_app",
|
||
|
workers=settings.workers_count,
|
||
|
host=settings.host,
|
||
|
port=settings.port,
|
||
|
reload=settings.reload,
|
||
|
log_level="debug",
|
||
|
factory=True,
|
||
|
)
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
main()
|