File size: 387 Bytes
3a04f21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""Service entrypoint compatible with Render-style deployment."""

import os

import uvicorn

from src.main import app


if __name__ == "__main__":
    from src.core.config import config

    port = int(os.environ.get("PORT", config.server_port))
    uvicorn.run(
        "src.main:app",
        host=config.server_host,
        port=port,
        reload=False,
    )