Use Variable VV for VVV to install WordPress fast

Looking at the article title, it might be a bit confusing for you because it’s all V. But Variable VV (new version by bradp fork) is the name of a tool used with VVV to create a new WordPress website faster and more flexible. You don’t need to write Auto Site Setup script yourself, don’t need to edit the hosts file, don’t need anything, just run some command lines only.

Install Variable VV on OS X

If you use OS X, you can use homebrew to install.

$ brew install bradp/vv/vv

Then access the folder /vvv-tut/ and type the command vv --helpit will ask you if this is the VVV installation folder, press Y and Enter.

Install Variable VV on Linux

You clone the VV source to your computer and copy it to the /bin/bash directory

Use Variable VV for VVV to install WordPress 15 . fast
$ git clone https://github.com/bradp/vv && mv vv /bin/bash/vv

Add new website with Variable VV

To add a new website, you use the etc create command. With this command, it will do things like:

  • Restart Vagrant with the command vagrant halt.
  • Create a directory containing the website in the www directory of VVV. It will include auto site setup configuration files like vv-init.sh, vvv-hosts and wp-cli.yml.
  • Reboot followed by recreating Vagrant with the command vagrant up –provision.

Let’s try it, first you need to access the /vvv-tut/ directory and now we need to create a website called thachpham-test.dev. I type the command vv create before.

$ vv create

It will show if this is a VVV folder or not, press Y and Enter. Then fill in the following information:

  • Name of new site directory: The name of the directory to set so that it creates in the www directory.
  • Domain to use: The domain name to use for that directory.
  • WordPress version to install: Type of WordPress version to install, you have two options: trunk (continuously committed beta) or leave it blank if you need to use the latest stable version.
  • Install as multisite? (y/N): Do you want to install WordPress Multisite, type y or n.
  • Git repo to clone as wp-content: The address of the git repository containing the wp-content data you want it to integrate into. Leave blank to skip.
  • Local SQL file to import for database: The path to the .sql file on the machine if you need to import existing SQL data. Leave blank to skip.
  • Remove default themes and plugins? (y/N): Option to remove default theme and plugin.
  • Add sample content to site (y/N): Option to import sample data into the website.
  • Enable WP_DEBUG and WP_DEBUG_LOG (y/N): Optionally enable WP_DEBUG and WP_DEBUG_LOG features.
See more:  How to Get Gmail's SMTP Information Correctly

Finally it will ask if you want to continue, press Y then Enter.

Use Variable VV for VVV to install WordPress 15 . fast

them-website-vv-01

Then use this command to restart Vagrant and recreate.

$ vagrant halt && vagrant up --provision

Finally, try accessing the website you created with Variable VV.

Delete website in VV

To delete the website installed in VV, you can simply use the command etc delete, for example:

Use Variable VV for VVV to install WordPress 15 . fast
$ vv delte thachpham-test.dev

Using Variable VV is as simple as that, but at least it makes it easier for you to add a website to VVV instead of having to do it manually like the previous tutorials, right? Hopefully this is a more interesting new option for you to easily install websites that support working on virtual machines more conveniently.

Rate this content


Source: Use Variable VV for VVV to install WordPress fast
– TechtipsnReview

, , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *