AnemiaLens / backend /start_server.py
3v324v23's picture
Update backend for account workflows and calibration
68bc1c7
Raw
History Blame Contribute Delete
421 Bytes
#!/usr/bin/env python3
"""
Generic startup script for hosted AnemiaLens backends.
Uses PORT and HOST environment variables when provided by the host.
"""
import os
import uvicorn
from app.main import app
if __name__ == "__main__":
port = int(os.environ.get("PORT", 8000))
host = os.environ.get("HOST", "0.0.0.0")
print(f"Starting AnemiaLens on {host}:{port}")
uvicorn.run(app, host=host, port=port)