Upgrade to Pro — share decks privately, control downloads, hide ads and more …

VVV 2

VVV 2

What is VVV? What's new in VVV 2? How to Migrate from v1

Tom J Nowell

April 03, 2017
Tweet

More Decks by Tom J Nowell

Other Decks in Programming

Transcript

  1. __ ___ ___ __ ____ \ \ / \ \

    / \ \ / / |___ \ \ \ / / \ \ / / \ \ / / __) | \ V / \ V / \ V / / __/ \_/ \_/ \_/ |_____| Varying Vagrant Vagrants Tom J Nowell @tarendai https://tomjn.com
  2. This Talk Covers • What is VVV • What Changed

    in VVV 2 • Migrating from VVV 1 • Setting up a new Site • Setting up an existing site
  3. A Local Developer Environment • WP CLI • PHP •

    MariaDB • MemcacheD • Nginx • Site Provisioning • A standardised system
  4. Installation From scratch • Install Vagrant & Virtualbox & git

    • Grab a copy of VVV from GitHub • Run: vagrant plugin install vagrant-triggers vagrant-hostsupdater Then: vagrant up --provision
  5. Sites: # The wordpress-default configuration provides a default installation of

    the # latest version of WordPress. wordpress-default: repo: https://github.com/Varying-Vagrant-Vagrants/vvv-wordpress-default.git hosts: - local.wordpress.dev # The wordpress-develop configuration is useful for contributing to WordPress. wordpress-develop: repo: https://github.com/Varying-Vagrant-Vagrants/vvv-wordpress-develop.git hosts: - src.wordpress-develop.dev - build.wordpress-develop.dev #example-site: # repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git # hosts: # - my-example-site.dev utilities: core: - memcached-admin - opcache-status - phpmyadmin - webgrind
  6. sites: wordpress-default: repo: https://github.com/Varying-Vagrant-Vagrants/vvv-wordpress-default.git hosts: - local.wordpress.dev wordpress-develop: repo: https://github.com/Varying-Vagrant-Vagrants/vvv-wordpress-develop.git

    hosts: - src.wordpress-develop.dev - build.wordpress-develop.dev newsite: repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git hosts: - newsite.com utilities: core: - memcached-admin - opcache-status - phpmyadmin - webgrind
  7. sites: # The wordpress-default configuration provides a default installation of

    the # latest version of WordPress. wordpress-default: repo: https://github.com/Varying-Vagrant-Vagrants/vvv-wordpress-default.git hosts: - local.wordpress.dev example-site: repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git local_dir: /home/user/Documents/example vm_dir: /srv/www/examplesite hosts: - my-example-site.dev utilities: core: - memcached-admin - opcache-status - phpmyadmin - webgrind
  8. sites: # The wordpress-default configuration provides a default installation of

    the # latest version of WordPress. wordpress-default: repo: https://github.com/Varying-Vagrant-Vagrants/vvv-wordpress-default.git nginx_upstream: php70 hosts: - local.wordpress.dev example-site: repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git nginx_upstream: php56 hosts: - my-example-site.dev utilities: core: - memcached-admin - opcache-status - phpmyadmin - webgrind - php56
  9. Common Troubleshooting Local Network Clashes VVV using the same IP

    as other computers Typos in vvv-custom.yml Syntax errors will break provisioning Corrupt VMs Powering down a machine unsafely, or disk corruption Out of Date Software Old Vagrant and Virtualbox Downgrading to VVV 1 Downgrading isn’t supported
  10. Database Backups Vagrant triggers runs a backup script on halt/destroy

    that places SQL files in database/backups/*.sql Backups are restored on provision if the db is empty