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

Extremely Powerful Local WordPress Development ...

Brad Parbs
August 16, 2014

Extremely Powerful Local WordPress Development with Vagrant and Friends - WordCamp Grand Rapids 2014

If you’re developing anything for yourself or for clients, you want to develop locally. This prevents disasters, allows you to develop more quickly, and a lot more benefits.

By using Vagrant and its friends, you can easily create a super-powerful local development toolkit just like the pros.

In this talk, we’ll walk through all of the benefits of Vagrant, how to easily get it setup, and the wide range of complementary tools and process you can add to your workflow to become a local development master.

Brad Parbs

August 16, 2014
Tweet

More Decks by Brad Parbs

Other Decks in Technology

Transcript

  1. I’m Brad Parbs • Developer @ WebDevStudios • Plugin /

    Theme Author • Tweet crappy things @bradparbs • Push code to github.com/bradp • Collect gifs at http://gifsb.in • Probably have a website somewhere
  2. I ♥ Vagrant & its 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 on 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 (without VVV) • 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. Helpful aliases $ alias v=vagrant $ alias vp="vagrant provision" $

    alias vup="vagrant up && vagrant provision && vagrant ssh"
  10. Commands • vvv create (or make or new) [site] •

    vvv delete ( or rm or teardown) [site] • vvv list
  11. vvv create • vvv create • asks you for directory

    name • asks you for local domain to use • Does all the boring vagrant file setup
  12. Modifications • Easily add more questions to site-setup • Git

    repo to clone to wp-content • Database to import • Whether or not to import placeholder content • Create Sublime project files • Bookmark in SourceTree
  13. More Modifications • vvv o [site] • Opens Sublime Project

    files • Opens local domain in browser • Opens git repo in SourceTree
  14. More Tips and Tricks • Anything you do that’s repetitive,

    script it! • Learn to love ‘vagrant provision’