talks/wcoc17/the_minimal_dev-wcoc17.md
2017-06-06 18:52:55 -07:00

2.6 KiB

footer: boogah.org/wcoc17

[fit] The Minimal Dev

WordCamp OC 2017

@boogah

[.hide-footer]


[fit] What is Valet?


[fit] Why Valet?


[fit] Why not Vagrant?


[fit] Why not Docker?


[fit] Why not X?


[fit] Installing Valet


[fit] Installing WP-CLI


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


Install WP-CLI Valet commands

→ wp package install aaemnnosttv/wp-cli-valet-command

[fit] Creating sites


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

inline


Destroy a site

→ wp valet destroy modok --yes
Success: modok was destroyed.

[fit] Preserving workflows


Supported workflows


[fit] Showing off


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

[fit] Exploration


Installing Elasticsearch

→ brew install elasticsearch

inline


[fit] Questions?