A
A
Alexey2019-08-15 09:18:55
git
Alexey, 2019-08-15 09:18:55

Should the /bitrix and /upload folders be stored in git or not?

I am going to switch to working with projects on Bitrix through version control, and the question arose as to whether to store the data of the /bitrix and /upload files in the repository?
My opinion is that they have no place in the repository, but there are doubts about what to do with autonomy, because without a backup of the site on the same test site, the site cannot be deployed.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2019-08-15
@gangstarcj

In the git, it is enough to store only the local folder and do all the work in it

S
serginhold, 2019-08-15
@serginhold

/upload is definitely not, it will be different for everyone on test copies, and can grow up to several GB.
/bitrix is ​​possible, but not all, but to make a bunch of exceptions for subfolders: cache, updates, backups (maybe some more I forgot).

V
Vyacheslav Shevchenko, 2019-08-15
@WebDev2030

You do not need to keep these folders. Below is my .gitignore

.DS_Store
Thumbs.db
/.idea/
/bitrix/*
/upload/*
/local/templates/tmpl/*.css
/sitemap*
node_modules/*
package-lock.json
.gitignore
/img/*

I'll explain a little:
I don't store css files. I am using scss and compiling it.
Well, the map site is simply not needed.
node_modules/*
package-lock.json

Node is used to build css and js and is not needed in
git

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question