12345678910111213141516171819202122 |
- # from app import generate_app
- # app = generate_app()
- def main():
- # 定时任务
- from lib.JobManage import JobManage
- JobManage.run()
- # 监听mqtt消息服务
- from lib.MessageListener import MessageListener
- MessageListener.run_background(background_is=False)
- # 给websocket发数据的
- # from factories.line_manage import LineManage
- # LineManage.run_background()
- # websocket服务 与 api服务
- # app.run(address='0.0.0.0', port=5042, debug=True)
- if __name__ == '__main__':
- main()
|