main.py 534 B

12345678910111213141516171819202122
  1. # from app import generate_app
  2. # app = generate_app()
  3. def main():
  4. # 定时任务
  5. from lib.JobManage import JobManage
  6. JobManage.run()
  7. # 监听mqtt消息服务
  8. from lib.MessageListener import MessageListener
  9. MessageListener.run_background(background_is=False)
  10. # 给websocket发数据的
  11. # from factories.line_manage import LineManage
  12. # LineManage.run_background()
  13. # websocket服务 与 api服务
  14. # app.run(address='0.0.0.0', port=5042, debug=True)
  15. if __name__ == '__main__':
  16. main()