Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
VVV 2
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Tom J Nowell
April 03, 2017
Programming
880
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
VVV 2
What is VVV? What's new in VVV 2? How to Migrate from v1
Tom J Nowell
April 03, 2017
More Decks by Tom J Nowell
See All by Tom J Nowell
Using Blocks Outside The Editor
tarendai
0
1.2k
Composer_and_WordPress__1_.pdf
tarendai
0
97
REST APIs for Absolute Beginners
tarendai
0
1k
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
580
Escape From New York
tarendai
0
820
WP The Right Way
tarendai
0
1.1k
Code Deodorant 2014
tarendai
1
820
Adv WP CLI
tarendai
0
790
WP CLI
tarendai
0
750
Other Decks in Programming
See All in Programming
使用 Meilisearch 建立新聞搜尋工具
johnroyer
0
170
なぜ型を書くのか? TSKaigi2026で改めて考える #tskaigi_smarthr
kajitack
0
400
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
1
610
【やさしく解説 設計編 #0】DDDのコード、読めるのに分からない人へ
panda728
PRO
2
280
作るコストが小さくなった時代 幸せに働くために改めて考えたいこと 〜エンジニアとして価値を出し続けるために注視している二分野〜
yuppeeng
0
120
継続モナドとリアクティブプログラミング
yukikurage
3
630
Embedded SREと共に達成した会員管理システムのAWS移行 - SRE NEXT 2026 ランチスポンサーセッション
niftycorp
PRO
1
2.9k
琵琶湖の水は止められてもNet--HTTPのリトライは止められない / You might be able to stop the water flow of Lake Biwa but you can't stop Net::HTTP retries
luccafort
PRO
0
430
SREは、MCPとSRE Agentをこう使え!
kazumax55
0
150
【やさしく解説 設計編・中級 #4】ルールの寿命と、システムの年輪
panda728
PRO
2
160
yield再入門 #phpcon
o0h
PRO
0
710
Welcome to the "Parametricity" 🏙️ − Generic だけど Specific な世界 −
guvalif
PRO
1
180
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Odyssey Design
rkendrick25
PRO
2
730
How to train your dragon (web standard)
notwaldorf
97
6.7k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
260
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
160
Rails Girls Zürich Keynote
gr2m
96
14k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
910
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.1k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
190
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Transcript
__ ___ ___ __ ____ \ \ / \ \
/ \ \ / / |___ \ \ \ / / \ \ / / \ \ / / __) | \ V / \ V / \ V / / __/ \_/ \_/ \_/ |_____| Varying Vagrant Vagrants Tom J Nowell @tarendai https://tomjn.com
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
What is VVV?
A Local Developer Environment • WP CLI • PHP •
MariaDB • MemcacheD • Nginx • Site Provisioning • A standardised system
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
None
vagrant up Turns it on vagrant halt Turns it off
What Changed in VVV 2?
vvv-config.yml
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
Important: Copy to vvv-custom.yml
Migrating from VVV 1
Backup your database Already done if you have vagrant-triggers
Rebuild: vagrant destroy Vagrant up --provision
Migrating a VVV 1 Site
None
sites: vvv1site: hosts: - vvv1site.dev
Always reprovision on changes vagrant reload --provision
Setting Up a New Site
Add a site to vvv-custom.yml: newsite: repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-t emplate.git hosts:
- newsite.com
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
Always reprovision on changes vagrant reload --provision
Setting Up An Existing Site
Add a site to vvv-custom.yml: site-name: repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-t emplate.git hosts:
- example.com
1. Reprovision 2. Copy files 3. Copy Database
Always reprovision on changes vagrant reload --provision
Advanced Provisioning
provision/vvv-init.sh A bash script that sets up your site provision/vvv-nginx.conf
The NGINX config for your site
More Per Site Options skip_provisioning: true branch: develop
Custom Folders local_dir: <absolute path> vm_dir: <absolute path>
example-site: local_dir: /home/user/Documents/example vm_dir: /srv/www/examplesite hosts: - my-example-site.dev
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
Custom PHP Versions nginx_upstream: php56
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
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
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
More Info https://github.com/Varying-Vagrant-Vagrants https://varyingvagrantvagrants.org
Tom J Nowell VIP Wrangler at Automattic https://tomjn.com @tarendai
Q? Tom J Nowell @tarendai https://tomjn.com