-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
怎样将前端客户端远程部署到nginx上,我远程部署时无法请求到后端的数据 #233
Comments
准确来说远程部署后可以访问后端的端口,但是静态资源404 |
music-client/vue.config.js和music-manage/vue.config.js里的域名改成你部署后后端的域名 |
,后端的songlist能够请求到数据,但是静态就不行,已经在客户端更改了自己的ip了,我在浏览器http://远程服务器ip:8888/img/songPic/tubiao.jpg, 这样在浏览器直接请求静态资源是404 ,按理说静态资源是可以直接请求到的 |
music-server/src/main/java/com/example/yin/constant/Constants.java 这里对比一下资源的路径 |
都不是,整体代表资源的绝对路径 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: