Jump to content

Edit History

JulienPct

JulienPct

Why do you want to version unnecessary files?

Let me explain: 

You can choose not to version sensitive files but why version the folders like: admin / vendor / etc...

These files are integrated in each version of PrestaShop, so an installation of a new Presta gives us these folders.

If you look at my example below, I think the best way is to exclude all folders / files and then allow some files, in my case the versioned files are : Child theme, override folder and my modules.

In case of big problem on the site requiring to reinstall a Presta or big change of the site directly, it's rare but you never know, we would just have to install a new Presta, put the .git in the httdocs and pull.

And, at least, you would be sure that there will be no sensitive data.

Translated with www.DeepL.com/Translator (free version)

image.png.d87b5bdc08eb1b7ccb32ff7557b66833.png

The screen above is only a part of my .gitignore

JulienPct

JulienPct

Why do you want to version unnecessary files?

Let me explain: 

You can choose not to version sensitive files but why version the folders like: admin / vendor / etc...

These files are integrated in each version of PrestaShop, so an installation of a new Presta gives us these folders.

If you look at my example below, I think the best way is to exclude all folders / files and then allow some files, in my case the versioned files are : Child theme, override folder and my modules.

In case of big problem on the site requiring to reinstall a Presta or big change of the site directly, it's rare but you never know, we would just have to install a new Presta, put the .git in the httdocs and pull.

And, at least, you would be sure that there will be no sensitive data.

Translated with www.DeepL.com/Translator (free version)

image.png.d87b5bdc08eb1b7ccb32ff7557b66833.png

×
×
  • Create New...