Let’s imagine the following situation: You downloaded WordPress and installed it in your development environment and need to create a theme. I’ll bring the ones that make the most sense to us, WordPress developers. If you type this question into Google, you will surely find a sea of links, explaining how version control works and giving you several reasons to use it. Here we do the version control with GIT, and we maintain the repositories of our projects in GitHub. I can develop my plugins/ themes, make the changes and put the site up, right? Wrong! You need to do version control for your project. I already have a local development environment configured. Today we will see some practices that can help us to have a more agile and secure workflow. There are other problems, but I believe these are the main ones and the ones that give the most headache. It is not scalable, if more people are working on a single file, one will overwrite another’s file.It is not legal to develop directly into production.It has no version control, if you modified the wrong file and want to revert, you will not be able to.What are the problems with working this way? It’s not interesting to work like this, especially if you develop your own themes and plugins. It is still common to find agencies and freelancers working this way. This form of work has become inefficient. But then I started developing themes, plugins and working as a team on the projects. I worked this way for a while on small, simple projects. If I wanted to make some changes to some file, I would just go into FTP, download the file, edit it and upload it back to the server. ![]() ![]() Everything worked perfectly, in a few hours there was a website running. Since I still did not know how to develop themes when I started, I bought some themes on the internet and played in the themes folder. The process was the same for all projects: downloaded WordPress and uploaded to the server via FTP. At first, my development workflow was not cool at all. My first contact with WordPress was as a freelancer.
0 Comments
Leave a Reply. |