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 · 8 comments
Open

前端访问500 #23

xuning888 opened this issue Sep 24, 2022 · 8 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

问题已经解决,非常感谢

@hhbkinger
Copy link

@xuning888 你好,想请问下你是如何解决了,我这边也发现相同的问题,谢谢

@xuning888
Copy link
Author

@xuning888 你好,想请问下你是如何解决了,我这边也发现相同的问题,谢谢

我对着官网搞了好几遍,然后就可以了

@xuning888
Copy link
Author

@xuning888 你好,想请问下你是如何解决了,我这边也发现相同的问题,谢谢

我对着官网搞了好几遍,然后就可以了

去年的事情,现在我也忘了具体如何解决了。

@hhbkinger
Copy link

@xuning888 能否确认是否是替换变量的问题?还是配置config的问题或其他?我现在一直困在这里,始终编译不成功,能否帮忙回忆下 谢谢

@xuning888
Copy link
Author

@xuning888 能否确认是否是替换变量的问题?还是配置config的问题或其他?我现在一直困在这里,始终编译不成功,能否帮忙回忆下 谢谢

您好,我把这个问题再打开,我觉得还是得由 repo 维护者来解答您的问题比较好,因为我怕误导您。

@xuning888 xuning888 reopened this Jun 19, 2024
@hhbkinger
Copy link

@xuning888 能否确认是否是替换变量的问题?还是配置config的问题或其他?我现在一直困在这里,始终编译不成功,能否帮忙回忆下 谢谢

您好,我把这个问题再打开,我觉得还是得由 repo 维护者来解答您的问题比较好,因为我怕误导您。

好的 ,感谢 @xuning888

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

3 participants