loading...
Cover image for How do you manage the source code of a WordPress website?

How do you manage the source code of a WordPress website?

baselakasha profile image Basel Akasha ・1 min read

Wordpress files are numerous. With all the plugins and components of WordPress, its very hard to manage the source code and using a VCS (version control system).

I tried using git for the whole website and ignoring my theme directory as it uses a separate git repo. However, its very time-intensive to deploy the website as I need to export and import the database manually.

Can you share how you manage your WordPress source code and deploy it (perhaps with the ability for a team to work on the same project)?

Discussion

pic
Editor guide
 

WordPress is itself a dependency, so having it as part of your code is not the best approach.

We use Composer to install WordPress and all the plugins and themes. I cannot share the exact details because they have some private and custom settings, but this post pretty much summarizes what we do, and it works pretty nicely.

roots.io/using-composer-with-wordp...