5. โIf your only tool is a hammer then every
problem looks like a nail.โ
6. Benefits of MAMP
โข Easy (ish) to set up
โข Runs locally (doesn't require internet connection)
โข Tailored to your OS (WAMP, XAMP, MAMP)
7. Downsides to MAMP
โข It doesn't exactly match your production server
environment
โข Setting it up still involves manual work
โข Creating the DB
โข Installing WordPress
8. Downsides to MAMP
โข Multiple machines results in a more challenging
workflow
โข Hard to start over if something breaks
9.
10. Why Vagrant?
โข Virtual machine on your local computer
โข Set up is autonomous
โข Disposable
โข Exactly replicates your production environment
โข Easy to share across multiple machines
13. Get started
git clone https://github.com/wpengine/hgv.git
cd hgv
vagrant up
Visit http://hgv.dev in your browser
14. Set up your site
โข Copy files to hgv/hgv_data/sites/php/
โข Import database using phpMyAdmin or WP CLI:
โข Copy FILENAME.sql into hgv/hgv_data/sites/php/
โข Run these commands:
vagrant ssh
cd /vagrant/hgv_data/sites/php/
wp db import FILENAME.sql