coder-xbai

Results 4 comments of coder-xbai

准确来说远程部署后可以访问后端的端口,但是静态资源404

![image](https://user-images.githubusercontent.com/64308128/212454691-44f7ffef-a11a-4996-9f3f-3231789c22cc.png) ![image](https://user-images.githubusercontent.com/64308128/212454906-104dc491-cb2e-4ee2-b8fe-dbc5872b2979.png) ![~U~_BEM RSMIT@VRD~ `V_5](https://user-images.githubusercontent.com/64308128/212455940-10b786c4-d5ce-41cf-b3aa-f81c403c02b4.png) ,后端的songlist能够请求到数据,但是静态就不行,已经在客户端更改了自己的ip了,我在浏览器http://远程服务器ip:8888/img/songPic/tubiao.jpg, 这样在浏览器直接请求静态资源是404 ,按理说静态资源是可以直接请求到的

![image](https://user-images.githubusercontent.com/64308128/212457191-1dc09e6d-75ac-4d94-9aef-21b0fb85ffea.png) 整个项目我在本地能正常运行,但是远程部署后,出现上述,是这里的PROJECT_PATH 是代表的music-server,还是music-website-master ![image](https://user-images.githubusercontent.com/64308128/212457478-e569539c-e9e0-4b8b-ac7e-f44e9dbb94f7.png)

将constant里面的路径换成了resource下的static目录下打包部署到nginx上还是访问不到静态文件,而songlist接口可以访问到数据 ![image](https://user-images.githubusercontent.com/64308128/212540434-73b2d34d-4a6b-40de-b5e2-578a4e35f7f6.png)