-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
30 lines (22 loc) · 670 Bytes
/
main.py
File metadata and controls
30 lines (22 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""Application entry point for production using Gunicorn."""
# -- Imports
from src.core.config import settings
from src.core.settings.gunicorn_conf import get_app_options
from src.core.settings.gunicorn_conf import Application
from src.api.app import app
# --
# Main runner
def main():
Application(
application=app,
options=get_app_options(
host=settings.gunicorn.host,
port=settings.gunicorn.port,
timeout=settings.gunicorn.timeout,
workers=settings.gunicorn.workers,
log_level=settings.logging.log_level,
),
).run()
# Entry point
if __name__ == "__main__":
main()