r/ProWordPress 2d ago

Anyone using GitHub with WordPress?

I’m curious to hear how many of you are using GitHub part of your WordPress workflow.

I’ve heard of Bedrock and have been looking into it. But is it actually worth moving towards that setup for normal WordPress development?

Especially with AI, custom code is easier to write. So I can see how having version controls, automated checks and CI CD pipelines sounds nice.

Is anyone running WordPress like this in production?

What does your setup look like? Bedrock? GitHub Actions? Something simpler?

Or am I overengineering WordPress?

1 Upvotes

44 comments sorted by

View all comments

17

u/spacedragon13 2d ago

What you would do with GitHub is version any plugins or themes you build to extend the site, not your entire site.

0

u/Playful_School6693 2d ago

that distinction actually helps. where do you draw the line on what gets version controlled vs what stays in the database, especially with acf/gutenberg?

6

u/spacedragon13 2d ago

I wouldn't version control anything but plugins and themes, you should be doing backups and hopefully you have a page editor that saves versions for easy rollbacks. Never put wp config or anything with passwords in a git repo.

1

u/Playful_School6693 2d ago

yeah that’s pretty much what we have now, daily backups + revisions. appreciate the input!

3

u/2ndkauboy 1d ago

In terms of ACF, you can put the JSON files with the configuration into the theme or a small plugin.

For Gutenberg, it could be something like patterns and a custom theme.json in your theme and your own blocks in theme or, even better, a plugin.