I have a question related with file app/etc/config.php
.
This file described here and defined:
Magento base dir
/app/etc/config.php, which contains the list of installed modules, themes, and language packages.
Is like app/etc/modules/*
in Magento 1 (Normally I have these files in VCS).
But in Magento 2 is recommended not share in VCS (Official .gitignore).
I have some question or uses cases for share in VCS but I want Understand because is not recommend add in VCS
- Production Enviroment (With Deploy System
Capistrano/Deployer, etc
)- You make a new deployment... and you need enable new/s module/s
php bin/magento module:enable VendorName_NewModule
beforesetup:upgrade
- How you manage this situation?
- You make a new deployment and you need disable (for any situation) new/s module/s
php bin/magento module:disable VendorName_NewModule
beforesetup:upgrade
- How you manage this situation?
- You make a new deployment... and you need enable new/s module/s
Local Enviroment
- If you do not want your team to have a particular module/s enabled/disabled
- How you manage this situation?
- If you do not want your team to have a particular module/s enabled/disabled
Staging Enviroment
- How can you achieve a same configuration of production enabled/disabled modules if you don't share
app/etc/config.php
- How you manage this situation? You need make manually?
- How can you achieve a same configuration of production enabled/disabled modules if you don't share
What is your point of view or how you manage these situations?
Thanks
* VCS : Version Control System, e.g: git, svn, etc