|
@Insanity5902 : Deployment of a WordPress site from one box to another has been a PITA since day one I started working with WordPress. (Truth-be-told it was a PITA with Drupal for 2 years before I started with WordPress so the problem is certainlyt exclusively with WordPress.) It bothered me that every time I needed to move a site I'd have to spend so much often duplicated effort and it kept me from deploying to test as frequently as I would have preferred. So about 4-6 months ago I started working on a plugin to solve the webhost migration problem and I mentioned my ideas on the WP Tavern forum . Well fast forward to today and I've pretty much got it working and I'm conveniently calling it " WP Migrate Webhosts ." Even though the plugin is still very much beta (probably even alpha) given your question I think I'm ready to let people start banging on it. The envisioned use-case is that:
You can download the plugin from my website and unzip into your plugins directory (if you don know how to do this then this plugin ist for you because it requires someone who knows what they are doing to use it.) I'll keep this plugin online until I release it to WordPress.org after which you should look for it there.
To use it you take a different approach in your
Hopefully this is (mostly) self explanatory. I attempted to make the code as clean as I could but unfortunately it requires those two cryptic
Once you have updated your The above will take you to an admin screen like the following which has a fair bit of description text and allows you to migrate FROM any of the other webhost domains with a single click after selecting the domains to migrate from ( NOTE : this example shows going DOWN from test/stage/live servers to local development but rest assured it can migrate TO any domain where it happens to be located. This also means the plugin will be great for taking an existing live site and quickly getting a local development environment working! ):
If it'st clear "
migration
" in this context means to update all the references in the current database to be appropriate for the currently defined webhost (and "
current
" is
sniffed
by inspecting
What's cool about the plugin is that it implements some basic migrations but
anyone can hook it and perform their own migrations
. For example, if you add a gallery plugin that stored full paths to images in the database you could hook the You may also find my migrations fail in edge cases I'vet tested and maybe you can help me improve the plugin? Anyone who wants to can email me via my gmail account (my alias is "mikeschinkel.")
Also, the plugin was designed to accept user-define webhost metadata in addition to the ones it recognizes like Well that's about it. I'm launching this plugin here on WordPress Answer's Exchange because @Insanity5902's question triggered it. Let me know if it's helpful, here if appropriate or via email ift. P.S. If you do decide to use this remember it is alpha/beta and that means it will change so be prepared for some minor surgery if you want to use itw and then use the released version once its been beaten on by many hands. P.P.S. What are my goals with this? I've love to see this migrate into WordPress core so that everybody would have access to it. But before that can even be considered lots of people have to be interested in using it to ensure it actually solves more problems then it potentially could create. So if you like the idea then by all means use it and help me gain momentum with it for eventual hopeful inclusion into WordPress core. |
| More Solution |
|---|
Reffered: https://wordpress.org/