获取页面数据的问题Strapi

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

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.

huangapple
  • 本文由 发表于 2023年5月29日 17:09:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/76356027.html
匿名

发表评论

匿名网友

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

确定