Tom Whitaker wrote:
> I'll be honest, after reading your answers, I'm more confused than
> ever. I guess I was thinking that there would be a simple application
> out there that would let me duplicate an existing Wordpress Multisite
> installation and make it available locally on my Macbook for tasks
> such as refining a theme with CSS, adding content, or building a new
> site on the network.
>
> It sounds like I'll have to cobble together a solution from several
> components such as a git repo, vagrant, Virtualbox, Salty Wordpress,
> Puppet. All of these services I barely understand. This makes it
> unlikely that I'll be able to do this myself without some serious
> learning time, frustration, and trial & error.
Here's how I do it (using Chassis, which Jeremy mentioned before):
https://github.com/sennza/Chassis
1. Clone Chassis: `git clone --recursive
https://github.com/sennza/Chassis.git myproject`
2. Start it up: `vagrant up`
3. Create a "content" directory that contains all my wp-content for the
live site (themes, plugins, etc)
4. Export data I need from the live site (in the admin, Tools -> Export)
5. Import data I need into my local site
(
http://vagrant.local/wp/wp-admin/import.php)
You should now have a fully functional test site locally. (Multisite is
a work in progress, but functional:
https://github.com/sennza/Chassis/pull/24)
What I'd really like to work on is automating steps 4-5 (and maybe step
3). I know how I'd like to do it (implementing the exporter in WP API),
but haven't had the time yet.
In an ideal world, I'd like to be able to do this:
$ wp clone
http://example.com/ mylocaldir
But that's a ways off at the moment.
(P.S. I'd love to make it happen, and this list is the best place to
find people to help. Does anyone else think this is a good idea?)
--
Ryan McCue
<
http://ryanmccue.info/>