hz-website/backend/docs/chapter09/ResourceNotFound.md
2025-06-11 17:46:57 +08:00

32 lines
911 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div style="display: flex;">
<img src="https://oss.iteachyou.cc/logo.png" height="30" />
<div style="margin-left: 5px; font-size: 30px; line-height: 30px; font-weight: bold;">梦想家内容管理系统</div>
</div>
----------
### 问网站打包上线后图片、视频等上传的资源404
一般产生该问题是由于项目的资源目录配置错误导致可以仔细检查项目中application-(dev|prd).yml文件中的
```yaml
web:
resource-path: D:/dreamer-cms/
```
如上配置则要保证在D:/ 盘中存在dreamer-cms目录并保证该目录中的目录文件结构为以下示例
```yaml
dreamer-cms
|- htmls
|- templates
|- uploads
|- config.json
```
如果上述配置没有问题还需要在后台管理系统中网站配置中修改网址为上线服务器的IP或域名。如
```yaml
http://cms.iteachyou.cc/
http://10.182.2.202:8888/
```