I would like to use version control with GIT, to track changes and to better support change management (with development, staging and production environment).
- Production on Google Cloud based on a Bitnami image, this will be the basis for my first GIT commit.
- Development on my local machine, I'll just install Magento, and then pull the GIT repository to get the same files (DB and Media will not be included in the repository, neither password and other sensitive configuration files).
- Staging on Google Cloud, I will use a snapshot of the production environment and make small adjustments to it, to get the wanted behavior of HTTPS and domain configuration. Once it is up and running, I'll pull the changes I made to the
Is this a somewhat sound approach?
All articles I read on GIT for Magento assumes the installation is done with Composer. Based on that, the discussion goes on, if vendor folder should be included. Is Magento 2 bitnami image based on Composer?
This stack exchange topic recommends to use this gitignore-file. Is that valid as well for the Bitnami image?
What more should I think about?
Below some generic info request by the support forum:
Which version of the application are you using?:
2.2.0 (updated from Bitnami 184.108.40.206)
Please choose how you got the application: Installer (Windows, Linux, macOS), cloud image (AWS, GCE, Azure, ...) or VM (VMDK, VBOX):
Have you installed any plugin or modified any configuration file?:
Yes, but it shouldn't affect the question.
Describe here your question/suggestion/issue (expected and actual results):