Slide 1

Slide 1 text

The Minimal Dev WordCamp OC 2017 @boogah

Slide 2

Slide 2 text

So... dev environments boogah.org/wcoc17

Slide 3

Slide 3 text

Mamas, don't let your babies grow up to be cowboy coders boogah.org/wcoc17

Slide 4

Slide 4 text

Dev environments • Vagrant • Docker • DesktopServer • Local • Chassis • MAMP • WAMP boogah.org/wcoc17

Slide 5

Slide 5 text

boogah.org/wcoc17

Slide 6

Slide 6 text

Valet boogah.org/wcoc17

Slide 7

Slide 7 text

Why Valet? boogah.org/wcoc17

Slide 8

Slide 8 text

Installing Valet boogah.org/wcoc17

Slide 9

Slide 9 text

boogah.org/inst-valet

Slide 10

Slide 10 text

Installing Valet (Homebrew) # Install Xcode Command Line Tools ! xcode-select --install # Install Homebrew ! /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # Update Homebrew Package Index ! brew update # Confirm Homebrew is Installed Correctly ! brew doctor boogah.org/wcoc17

Slide 11

Slide 11 text

Installing Valet (PHP 7) # Install PHP 7.0 ! brew tap homebrew/php ! brew install php70 # Install Xdebug (optional) ! brew install php70-xdebug # Confirm PHP is Installed Correctly ! php -v boogah.org/wcoc17

Slide 12

Slide 12 text

Installing Valet (MySQL) # Install MySQL ! brew install mariadb # Launch MySQL at Login ! brew services start mariadb boogah.org/wcoc17

Slide 13

Slide 13 text

Installing Valet (Composer) # Install Composer ! brew install composer # Confirm Composer is Installed Correctly ! composer -V boogah.org/wcoc17

Slide 14

Slide 14 text

Installing Valet (Valet) # Install Valet (Part 1) ! composer global require laravel/valet # Install Valet (Part 2) ! valet install # Create a Directory for Valet Sites ! mkdir ~/sites/valet/ ! cd ~/sites/valet/ ! valet park boogah.org/wcoc17

Slide 15

Slide 15 text

Installing WP-CLI boogah.org/wcoc17

Slide 16

Slide 16 text

Install WP-CLI ! curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar ! php wp-cli.phar --info ! chmod +x wp-cli.phar ! sudo mv wp-cli.phar /usr/local/bin/wp From wp-cli.org boogah.org/wcoc17

Slide 17

Slide 17 text

Valet + WP-CLI boogah.org/wcoc17

Slide 18

Slide 18 text

WP-CLI Valet commands ! wp package install aaemnnosttv/wp-cli-valet-command boogah.org/wcoc17

Slide 19

Slide 19 text

Creating sites boogah.org/wcoc17

Slide 20

Slide 20 text

Create a site ! wp valet new modok --admin_user=modok --admin_password=advanced-idea-mechanics Don't go anywhere, this should only take a second... Success: modok ready! https://modok.dev boogah.org/wcoc17

Slide 21

Slide 21 text

boogah.org/wcoc17

Slide 22

Slide 22 text

Destroy a site ! wp valet destroy modok --yes Success: modok was destroyed. boogah.org/wcoc17

Slide 23

Slide 23 text

Preserving workflows boogah.org/wcoc17

Slide 24

Slide 24 text

Supported workflows • Multisite • WordPlate • Skeleton • Bedrock boogah.org/wcoc17

Slide 25

Slide 25 text

Showing off boogah.org/wcoc17

Slide 26

Slide 26 text

Showing off ! cd ~/sites/valet/modok ! valet share ngrok by @inconshreveable (Ctrl+C to quit) Session Status online Version 2.2.4 Region United States (us) Web Interface http://127.0.0.1:4040 Forwarding http://bf40fa0e.ngrok.io -> modok.dev:443 Forwarding https://bf40fa0e.ngrok.io -> modok.dev:443 Connections ttl opn rt1 rt5 p50 p90 0 0 0.00 0.00 0.00 0.00 boogah.org/wcoc17

Slide 27

Slide 27 text

Experimentation boogah.org/wcoc17

Slide 28

Slide 28 text

Installing Elasticsearch ! brew install elasticsearch boogah.org/wcoc17

Slide 29

Slide 29 text

boogah.org/wcoc17

Slide 30

Slide 30 text

Maintaining Elasticsearch ! brew pin elasticsearch boogah.org/wcoc17

Slide 31

Slide 31 text

boogah.org/wcoc17

Slide 32

Slide 32 text

Questions? boogah.org/wcoc17