From d42a806e588dc94250a703d619080a2deba86547 Mon Sep 17 00:00:00 2001 From: 30404 <3040471803@qq.com> Date: Sat, 13 Jul 2024 13:20:55 +0800 Subject: [PATCH] 213 --- app-dm/src/setupProxy.js | 2 +- python/app.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app-dm/src/setupProxy.js b/app-dm/src/setupProxy.js index 8a77b83..98d5149 100644 --- a/app-dm/src/setupProxy.js +++ b/app-dm/src/setupProxy.js @@ -4,7 +4,7 @@ module.exports = function(app) { app.use( '/api', // 如果请求路径匹配'/api',则进行代理 createProxyMiddleware({ - target: 'http://127.0.0.1:5000', // 目标后端服务地址 + target: 'http://127.0.0.1:8000', // 目标后端服务地址 changeOrigin: true, }) ); diff --git a/python/app.py b/python/app.py index 3e35bb2..f565779 100644 --- a/python/app.py +++ b/python/app.py @@ -452,6 +452,6 @@ def handle_disconnect(): if __name__ == '__main__': - socketio.run(app, host='0.0.0.0', port=5000 ,allow_unsafe_werkzeug=True, debug=False) + socketio.run(app, host='0.0.0.0', port=8000 ,allow_unsafe_werkzeug=True, debug=False)