Best way to use VVV

233 views
Skip to first unread message

Lee Marrett

unread,
Jul 1, 2014, 6:39:56 PM7/1/14
to wordpress-...@googlegroups.com
Now I've got my database export and import stuff sorted, I'm wondering what the best way to manage different sites built in VVV is.

Is the recommended approach to have a single instance of VVV for each site? Or is it better to have a "local wordpress sites" type global instance of VVV and have multiple sites within that?

For example -- 

if I manage three different wordpress sites for three different people (call them site1, site2 and site3) 

would it be better to have three folders each with a separate vagrant vm instance provisioned with wordpress-default acting as the main database in each one, OR

have "a local wordpress sites" folder, and use the auto site setup to create each site within that single VM instance?

Sorry if that seems a very convoluted way of explaining!

Thanks

Lee

Robert Lilly

unread,
Jul 2, 2014, 4:07:07 PM7/2/14
to wordpress-...@googlegroups.com
Hi Lee,


On Tuesday, July 1, 2014 3:39:56 PM UTC-7, Lee Marrett wrote:
Now I've got my database export and import stuff sorted, I'm wondering what the best way to manage different sites built in VVV is.

Is the recommended approach to have a single instance of VVV for each site? Or is it better to have a "local wordpress sites" type global instance of VVV and have multiple sites within that?

I would definitely recommend against having a separate instance of VVV for each site, unless the configuration/provisioning is radically different for each. Having separate instances of VVV would result in needing significantly more hard drive space for storing the VMs, and would prevent running the sites simultaneously (unless you have enough RAM and CPU power to handle multiple VMs running a the same time).

Using the auto site setup provides an easy way to create multiple sites, and can handle the provisioning, configuration, and hosts file updating. You'll need to specify the creation of a database for each site in your vvv-init.sh script. Then when you `vagrant up` in the VVV folder all of your sites will be available to you simultaneously.

I hope this answers your question!

Robert
 

Zachary Brown

unread,
Jul 2, 2014, 5:12:00 PM7/2/14
to Robert Lilly, wordpress-...@googlegroups.com
+1 for Robert's answer - this is the model most people I know use.  


--
You received this message because you are subscribed to the Google Groups "WordPress and Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wordpress-and-va...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lee Marrett

unread,
Sep 5, 2014, 3:29:56 AM9/5/14
to wordpress-...@googlegroups.com
It does indeed, thanks very much Robert! (and Zach)

Reply all
Reply to author
Forward
0 new messages