mirror of
https://github.com/furyhawk/agent_alpha.git
synced 2026-07-21 02:25:34 +00:00
26 lines
543 B
Python
26 lines
543 B
Python
"""Entry point — run with ``uv run python -m backend.main``.
|
|
|
|
The FastAPI app is created lazily inside ``if __name__`` so importing
|
|
this module has no side effects.
|
|
"""
|
|
|
|
import uvicorn
|
|
|
|
|
|
def main() -> None:
|
|
"""Start the Uvicorn development server."""
|
|
from backend.core.config import settings
|
|
|
|
uvicorn.run(
|
|
"backend.app:create_app",
|
|
host="0.0.0.0",
|
|
port=8000,
|
|
reload=True,
|
|
factory=True,
|
|
log_level="debug" if settings.debug else "info",
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|