This is a 4 part reference guide to getting started with Vagrant, VVV and WordPress.
This is Part 3 – Adding Multiple Sites with Variable VVV
Vagrant and WordPress Local Development – Spinning up sites with Variable VVV
As well as these default sites, you can use a script to power up any number of additional WordPress sites using Variable VVV – The Best VVV Site.
Variable VVV – The Best VVV Site Wizard
Variable VVV – The Best VVV Site Wizard is a development that make the process of adding additional WordPress sites to your VVV set up very easy.
Install Variable VVV
Either download the zip and expand and move it into your Vagrant folder or clone it in…
git clone https://github.com/bradp/vv.git
You can also install via Homebrew
brew install bradp/vv/vv
This will add the vv directory and the all important set up script file is inside named vv – if you didn’t go the HomeBrew install way, it’s best to add the vv directory to your path so you can easily run the vv script.
Running Variable VVV
Run the vv script from your vv folder, in the screen shot below, the vagrant directory is vagrant-wordpress and the new site is redtest.dev
Run the script and answer the wizard prompts for the initial VVV install directory, directory name, domain name, WP version, Multi-Site, Git Repo, Sample content and debug variables – then the new site will be created and you will be given the config details at the end of the command including the WP Admin login.
You may need to make a cup of tea while it does it’s thing. The reason for the time is called ‘provisioning’ in vagrant VVV speak, once you are comfortable with the process you can investigate VVV Provision Flipper, which is another tool by the same author that allows very fast site provisioning by swapping the site creation script to a more bare bones one.
That’s it the site is now available locally and has a default login of admin/password.
Variable VVV is a fork of VVV Site Wizard and has built further functionality in like blueprints which allow you to set up sites with default plugins and themes – more info on that is available on the projects GitHub page.