A workflow to synchronise changes before pushing to production #635
Replies: 2 comments 2 replies
-
I'd try to swap the point of view: the production is where contents resides. Full stop. My points are:
My workflows never involve to push the DB to production. But if I'd need I'd prepare a script, to be ran contextually to the deploy, programmatically creating contents needed to support my feature. The script could be ran on production, but also locally with a "pull+seed-new-data+push" while in maintenance. Obviously scripting the creation of over-complex contents could be over-budget. Guys from delicious brains have a really interesting project here https://github.com/deliciousbrains/wp-migrations aiming to bring real frameworks practices about database updates to WP. I've never had the chance to use it (when working with WP I prefer to avoid complexities at all because I don't feel comfortable/confident enough with its architecture) but the idea of working on WP as I'd be working on Laravel/Symphony/Rails really tickles me :) Best |
Beta Was this translation helpful? Give feedback.
-
The problem for me would always be that I don't know exactly which tables are involved in my changes. I use Oxygen (https://oxygenbuilder.com) as a page builder. When I make changes (layout/design/content) via Oxygen, I have to sync the DB back to the live site. Otherwise I have to go through all the changes there again. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I wonder how to best deal with changes on the production site during the time it takes to push local changes. Two scenarios:
The challenges are
To export / import I use WP All Import, which has a CLI that could be used as part of wordmove hooks. I consider automating that to some extent.
I'd love to hear some thoughts.
Beta Was this translation helpful? Give feedback.
All reactions