Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

疑问 #10

Open
CodeYYang opened this issue Jan 15, 2021 · 1 comment
Open

疑问 #10

CodeYYang opened this issue Jan 15, 2021 · 1 comment

Comments

@CodeYYang
Copy link

抱歉我想询问一下当我部署完成ui部分访问127.0.0.1:5000可以访问,但是当我在修改server.Py文件中的app.run()为host='127.0.0.1',port=5000,debug=True并且执行server.py文件之后127.0.0.1:5000就显示Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.是什么原因呢万分感谢

@XUranus
Copy link
Owner

XUranus commented May 4, 2021

前后段是分离的,如果前端直接npm start跑在127.0.0.1:5000,那么后端可以配置成127.0.0.1:6000,并在前端中/ui/src/CameraSection.js中指定serverAddr=127.0.0.1:6000。如果前端想和后端都部署在5000端口,需要先编译前端:npm run build,然后把build目录下的前端文件都移到server下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants