Hello there,
I’m currently integrating SuiteCRM for a company project, as I am the only developer here I still am an apprentice (web)application developer and keep practicing everyday !
I have installed SuiteCRM instances on 4 different servers (development, tests, staging, production) for now, all linked by Git.
I constantly add and try to customise the project to fit my company’s needs as much as possible and push the results on the 4 servers, step by step, looking for any fail or bug before pushing it on the production server.
I also think that some files generated in the cache/
folder seem not to be necessary for the other servers but I am not 100% sure about this, as I saw few forum posts telling to keep in track some files and folder in this folder.
I tried to find a proper .gitignore
and felt on this one, added it to our projet — it seems to be well working by discarding all generated files by hand before pushing to my remote Git. Here is a part of this .gitignore
:
# Ignore the cache folder
/cache/*
!/cache/index.html
# Ignore some files and directories from the custom directory.
custom/Extension/
custom/history/*
custom/blowfish/*
custom/modulebuilder/*
custom/working/*
custom/modules/*/Ext/
custom/modules/unified_search_modules_display.php
But there are still the changes that I was mentioning above tracked by Git, so here is my question :
Can I now add the entire cache/
folder to .gitignore
so I won’t have to stash or discard changes at every stage of development ?
Version 7.11.20
My uncertainty mostly came after reading this article referred by this post and I don’t really know if it applies to every possible integration (like ours) or not or if the situation has changed.
EDIT
As I am writing this topic, I realize that it is really close to the post I referred above.