I’ve been working away at a medium-size WordPress site. So far I’ve just been hosting the site on my local machine and showing it to internal consultants over our local network. Things are working well, and now it’s time to show it off to the client. I’ve been using git all along, so pushing it to the dev server was a breeze. I duplicated the local DB and pushed it to the dev server manually, which was fairly easy except that I had to manually change a few URL entries.
Now my question is: what’s the best way to keep two instances of WordPress synced? I still have more work to do locally and the DB is going to need to get pushed up again. How do other people manage this in an automated way?
One thought I had was to write a git hook to pull the MySQL data down when I push from my local machine and have a hook on the other end to import the data when the dev server pulls. However, if I do this I’ll have to worry about changes to the wp_options table.
Does anyone have any strategies for making this sort of thing easy?
Thanks!