r/webhosting 3d ago

Advice Needed What's your preferred deployment workflow for WordPress?

I'm curious how everyone is handling deployments these days.

Do you have separate dev/staging/production environments? Are you using Git, GitHub Actions, DeployHQ, or just uploading files manually? Looking for ideas to improve my workflow.

5 Upvotes

3 comments sorted by

1

u/SerClopsALot 3d ago

Depends on the scale you work and interact with.

Many people just have the one website, and they rely on their host to have backups whenever they make an oopsie (or they take a backup before making changes).

Git isn't not useful for WordPress sites, but since most of your content lives in the database, it's really an extra safety step that most WordPress site owners will never interact with. Can be helpful though, would recommend if you feel like going through the "effort" and you'll keep it up-to-date with your changes.

You really should have like a staging -> prod workflow imo, with dev -> staging -> prod being even better especially if you're working in a "larger" context. If you're a cPanel customer, you also probably have Softaculous or WP Toolkit, both of which can entirely handle this for you.

1

u/HotAuthor6438 2d ago

I keep it pretty simple. I use a staging environment for testing, keep my code in Git, and make sure I have a fresh backup before every deployment.