Luxx/run.py

20 lines
371 B
Python

#!/usr/bin/env python3
"""Application entry point"""
import uvicorn
from luxx.config import config
def main():
"""Start the application"""
uvicorn.run(
"luxx:app",
host=config.app_host,
port=config.app_port,
reload=config.debug,
log_level="debug" if config.debug else "info"
)
if __name__ == "__main__":
main()