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

Extremely Powerful Local WordPress Development ...

Extremely Powerful Local WordPress Development with Vagrant and Friends

Brad Parbs

July 25, 2015
Tweet

More Decks by Brad Parbs

Other Decks in Technology

Transcript

  1. I’m Brad Parbs • Developer @ WebDevStudios • Push code

    to http://github.com/bradp • http://brad.party
  2. I ♥ Vagrant & friends. • Easy WPCLI • Setting

    up sites super fast • Always up-to-date • No more MAMP • Keeps your system clean
  3. What can you do with WPCLI? $ wp core update

    $ wp plugin install logout-roulette $ wp scaffold post-type books
  4. Scripting site setup • Auto-create Sublime project • Add to

    SourceTree • Open in Chrome • Anything you can imagine
  5. Installing Vagrant • Any OS works! • Install VirtualBox (4.2.x

    or 4.3.6 recommended by VVV) • Install Vagrant http://www.vagrantup.com/downloads.html https://www.virtualbox.org/wiki/Downloads
  6. How to use • Clone a box • Start up

    a virtual machine • Use it! • Pause / Destroy it anytime
  7. Commands $ vagrant init $ vagrant up $ vagrant halt

    $ vagrant destroy $ vagrant provision $ vagrant ssh
  8. Varying Vagrant Vagrants “Varying Vagrant Vagrants is an evolving Vagrant

    configuration focused on WordPress development.”
  9. How VVV works • Uses Ubuntu+Nginx • Automatic provisioning script

    for WP updates • Keeps database on host filesystem • Easy to modify / configure
  10. VV http://vvv.dev/ Default dashboard containing several useful tools: PHPmyAdmin, OPCache,

    links to all sites, etc https://github.com/leogopal/VVV-Dashboard
  11. Helpful aliases $ alias v=vagrant $ alias vp="vagrant provision" $

    alias vup="vagrant up --provision && vagrant ssh"
  12. Speeding up Vagrant Provision • VVV looks for custom-provision.sh in

    provision folder. • You can remove the WP updates and apt-get updates for more speed.
  13. More Tips and Tricks • Anything you do that’s repetitive,

    script it! • Learn to love ‘vagrant provision’