5

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?

3
  • Why not put under version control what you write as source code and omit everything from version control that is automatically generated from the sources, as usual? Commented Mar 20, 2022 at 20:49
  • 1
    because when you modify Strapi through the front end, it modifies the javascript, not just the database. so using the app requires version control afaik. Commented Mar 22, 2022 at 3:11
  • 4
    that is part of the reason I am asking the question. What can I put in version control and what is unnecessary? Commented Mar 22, 2022 at 3:12

1 Answer 1

0

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.