tubewatch/playlist-monitor/app/__main__.py

18 lines
436 B
Python

"""
Entry point for running the playlist monitor service as a module
"""
if __name__ == "__main__":
from .main import app
import uvicorn
# Import settings to ensure they're loaded
from .core.config import settings
uvicorn.run(
"app.main:app",
host=settings.HOST,
port=settings.PORT,
reload=settings.DEBUG,
log_level=settings.LOG_LEVEL.lower()
)