英文:
The problem with getting the page data Strapi
问题
我的问题是这样的。我的团队中有一些前端开发人员,我为他们在Strapi上建立了一个简单的后端,并且可以在我的电脑上运行它。但是,当他们从GitHub拉取我的更改时,他们无法从后端检索数据,问题确切地在于我不明白到底需要在哪里配置权限以从数据库中读取文件=((
我尝试了很多不同的方法。
英文:
My problem is as follows. I have some frontend developers in my team, I built them a simple backend on Strapi and can run it on my computer. By pulling my changes from github they can't retrieve data from the backend, the problem is exactly that I don't understand where exactly I need to configure permission to read files from db =((
I've tried so many different things.
答案1
得分: 0
我相信数据本身位于/.tmp/data.db
,所以如果你想分享它,你要么需要确保它被跟踪,要么手动发送给其他人。(因为.tmp
应该默认在gitignore中)
实际上,我认为这个文件不应该被跟踪,因为这可能会导致许多冲突和问题。最好的做法可能是创建一个仅包含必要部分的数据库的干净副本,保存在某个地方,然后与你的团队共享。
英文:
I believe the data itself is at /.tmp/data.db
so if you want to share this, you either need to make sure it's tracked or manually send it to someone. (since .tmp
should be in gitignore by default)
Realistically, I don't think this file should be tracked as that would probably result in a lot of conflicts and issues. Probably best to create a clean copy of the database with only the essential parts, save it somewhere, and share it with the rest of your team.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论