Closed df2k2 closed 3 months ago
Hi @df2k2. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.
Please, add a comment to assign the issue: @magento I am working on this
It was reported on the magento2 repo to remove the config.php
file again from the .gitignore
file, but no idea if something will be done with it, the issue has been open for quite a while now and is a bit messy (the messy part is probably my fault 😛)
@jfrontain can you take a look?
The topic was migrated. If the issue is still relevant, please feel free to reopen it in https://github.com/AdobeDocs/commerce-operations.en/issues.
Track app/etc/config.php or not?
Topic Link
https://devdocs.magento.com/guides/v2.4/config-guide/prod/config-reference-gitignore.html
Description
The references to .gitignore found here: https://devdocs.magento.com/guides/v2.4/config-guide/prod/config-reference-gitignore.html and https://devdocs.magento.com/guides/v2.3/config-guide/prod/config-reference-gitignore.html are:
Which contain a reference to ignore
app/etc/config.php
: https://github.com/magento/magento2/blob/2.4-develop/.gitignore#L18However, there are several statements throughout devdocs that would lead to an assumption that this app/etc/config.php file would not be set for ignore by VCS in .gitignore for 2.3 and 2.4 CE:
Reference 1: https://devdocs.magento.com/guides/v2.4/config-guide/deployment/pipeline/production-system.html
Reference 2: https://devdocs.magento.com/guides/v2.4/config-guide/deployment/pipeline/example/shared-configuration.html
Reference 3: https://devdocs.magento.com/guides/v2.4/config-guide/deployment/pipeline/technical-details.html
Reference 4: https://devdocs.magento.com/guides/v2.4/config-guide/prod/config-reference-most.html
Possible solutions
One of:
app/etc/config.php
needs to be explicitly added to VCS trackingapp/etc/config.php
from the .gitignore file,Additional information