英文:
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.
答案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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论