main.py 359 B

12345678910111213
  1. import uvicorn
  2. from src.config import appConfig
  3. from src.RegisterApp import RegisterApp
  4. app = RegisterApp()
  5. if __name__ == "__main__":
  6. uvicorn.run(
  7. "main:app",
  8. port=appConfig.APP_PORT,
  9. host=f"{appConfig.APP_HOST}",
  10. reload=appConfig.APP_DEBUG,
  11. workers=appConfig.APP_WORKS,
  12. log_config=None
  13. )