版本控制和 Strapi

发布于 2025-01-15 18:50:02 字数 174 浏览 2 评论 0原文

我对 Strapi 中的版本控制感到困惑。我是否将整个 JavaScript 代码库置于版本控制中?是否有任何目录需要排除,因为它们是不需要的或者是安全漏洞?当我部署应用程序时,除了版本控制中的文件和“.env”之外,我还需要什么来部署应用程序;数据库中是否有对于应用程序来说至关重要的信息也需要迁移?我需要将数据库置于版本控制中吗?

I am confused about version control in Strapi. Do I put the entire JavaScript codebase in version control? Are there any directories I need to exclude because they are not needed or are a security vulnerability? When I deploy an app, what else do I need besides the files in version control and the '.env' to deploy the app; is there information in the database that is essential to the app that also needs to be migrated? Do I need to put the database in version control?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三生一梦 2025-01-22 18:50:02

这是我的 .gitignore 的内容(如果有用的话)

.env
*.cache
.strapi-updater.json

/build
/dist
/exports
.env.local

strapi_cms.json
.strapi

This is the content of my .gitignore if it's useful

.env
*.cache
.strapi-updater.json

/build
/dist
/exports
.env.local

strapi_cms.json
.strapi
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文