Hi. Developer here. I’m working with WordPress locally with the official [WordPress docker image](https://hub.docker.com/_/wordpress). I have WordPress running locally and I sync the wp-content/ files to my file system via a mounted volume. It works out pretty well. I can commit the files to Git that I ordinarily customize.
On merge to our \`main\` branch, I have a GitHub Action that triggers a git pull on the production server to merge in the changes.
What’s missing, however, is a way to sync the database changes. If I update settings or content stored in the database, I have to go to production and copy it over from dev. Not ideal. This results in some of our stack being in source control and some living outside.
Is there a way to sync data from production to dev? If someone updates a page in production, this doesn’t get copied over to my local dev (unless I copy/paste manually).
[ad_2]