debbe6821a
/ docker_build (push) Successful in 6m37s
Testing zangramru / lint (ruff-format) (push) Failing after 4s
/ helm_deploy (push) Failing after 25s
Testing zangramru / lint (mypy) (push) Failing after 4s
Testing zangramru / lint (ruff) (push) Failing after 4s
Testing zangramru / pytest (push) Failing after 4s
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
25 lines
537 B
Python
25 lines
537 B
Python
import os
|
|
|
|
import uvicorn
|
|
|
|
from zangramru.settings import settings
|
|
|
|
|
|
def main() -> None:
|
|
"""Entrypoint of the application."""
|
|
os.environ["PICCOLO_CONF"] = "zangramru.piccolo_conf"
|
|
uvicorn.run(
|
|
"zangramru.web.application:get_app",
|
|
workers=settings.workers_count,
|
|
host=settings.server_host,
|
|
port=settings.server_port,
|
|
reload=settings.reload,
|
|
log_level=settings.log_level.value.lower(),
|
|
access_log=True,
|
|
factory=True,
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|