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

前端访问500 #23

Open
xuning888 opened this issue Sep 24, 2022 · 2 comments
Open

前端访问500 #23

xuning888 opened this issue Sep 24, 2022 · 2 comments

Comments

@xuning888
Copy link

image

后端项目除了config之外都成功启动
image

前端项目运行完run.sh后, 我将html目录下的资源拷贝到nginx/html目录下
访问localhost/workplace 显示500页面

@partonstart
Copy link
Contributor

应该是你前端工程编译后dist中的文件没替换变量
image
可以检查一下/usr/share/nginx/html下的index.html中的变量换了没,比如BUILD_BASE_PATH。看你报错的URL上就有这个变量。
image

@xuning888
Copy link
Author

问题已经解决,非常感谢

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