I want to be able to use and update a Pimcore instance, in multiple computers, while using GIT as version control.
Is there a recommended workflow for in Pimcore (version 4, if it helps) regarding updates and GIT?
In a GIT repository, should I track the pimcore/ folder? and the vendor/ folder?
Either way, what do I have to do to update Pimcore:
Or
Is there a better option? What workflow do you think is the best?
Thank you.
You could run these scripts manually, but there is a live updater in the pimcore administration (Tools -> Update) which does this for you together with updating pimcore source code (composer libs in /vendor included). Or if you like, you can update via pimcore console tool, see php pimcore/cli/console.php update --help
.
So, I would suggest to .gitignore the /vendor and /pimcore folders and update via the live updater or console tool on each computer separately.
Regards,
Martin