Optimizing your website in Magento
Making sure your website is running in an optimized way is of utmost importance for your sales. Loading speed has a direct impact on your customers,...
When creating a Magento 2 instance, there are many folders and files in the installation directory, this guide can help you understand which files should be added to your project's repository and which ones are not needed or could even be problematic to include.
It will also explain in broad terms how the Magento filesystem works and what recommendations are used to optimize your repository. For an ideal understanding of this article, it is recommended to have a basic understanding of Git and GitHub (or some equivalent tool like GitLab or BitBucket), however the concepts below are useful for anyone who wants to learn about files and folders in a Magento 2 project.
First of all, let's list the default Magento 2.4 repository:
The above files must always be included in our repository, but in addition, the following files or directories may also be included:
Files and folders to avoid adding to the repository (must be in the .gitignore file):
Finally, the following recommendations can make it easier to manage the code and resources of the repository and avoid errors:
I hope this article has been useful to understand how to organize a GitHub repository in Magento 2, remember that all projects are different and there are no definitive rules of what you can add and what not, however if you apply the concepts explained above, you can avoid various problems on the way and work more orderly and safely.
Making sure your website is running in an optimized way is of utmost importance for your sales. Loading speed has a direct impact on your customers,...
Let's find out how B2B platforms are becoming more important every day and also let's understand what are these platforms used for and how do they...