媒体文件在从Git存储库下载的管理面板中未显示。

huangapple go评论48阅读模式
英文:

Media files are not displayed in the admin panel downloaded from the git repository

问题

I am working on a Strapi project on several computers and use Git accordingly.
我正在多台电脑上进行Strapi项目的工作,并相应地使用Git。

The public/uploads folder is uploaded to the Git repository along with all its contents.
public/uploads文件夹及其所有内容已上传到Git仓库。

To upload the changes, using the git pull command, I upload the changes.
要上传更改,使用git pull命令,我上传更改。

All media files are uploaded to the folder of the same name, but they are not displayed in the administrative panel, the Image field is also empty in the resources I created.
所有媒体文件都上传到同名文件夹,但它们不显示在管理面板中,我创建的资源中的图像字段也为空。

How to solve this problem? In production, I'm going to store files in the same folder, without cloud services.
如何解决这个问题?在生产环境中,我将在相同的文件夹中存储文件,不使用云服务。

英文:

I immediately apologize for my English.

I am working on a Strapi project on several computers and use Git accordingly.

The public/uploads folder is uploaded to the Git repository along with all its contents.

To upload the changes, using the git pull command, I upload the changes.

All media files are uploaded to the folder of the same name, but they are not displayed in the administrative panel, the Image field is also empty in the resources I created.

How to solve this problem? In production, I'm going to store files in the same folder, without cloud services.

Media Admin Panel

答案1

得分: 0

问题是“data.db”文件没有进入版本库。在编辑.gitignore文件后,一切都变得正常。

英文:

The problem was that the "data.db" file from the .tmp folder did not get into the repository. After editing the file .gitignore everything has become as it should.

huangapple
  • 本文由 发表于 2023年4月10日 18:20:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/75976240.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定