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

Valet + WP-CLI + Bash

Valet + WP-CLI + Bash

Spin up a local WordPress deployment and remote repo using Laravel Valet, WP-CLI, and Bash

Alonso Indacochea

June 02, 2016
Tweet

More Decks by Alonso Indacochea

Other Decks in Technology

Transcript

  1. LARAVEL VALET WHAT IS IT? ▸ Local dev environment for

    Mac OS X ▸ Allows sharing by local tunnel ▸ No Vagrant, no Apache, no Nginx ▸ Leverages Caddy, DnsMasq, ngrok ▸ Good for machines with limited RAM
  2. LARAVEL VALET REQUIREMENTS ▸ Homebrew ▸ PHP ▸ MySQL /

    MariaDB ▸ Composer (for installation) ▸ More info: https://laravel.com/docs/5.2/valet
  3. WP-CLI WHAT IS IT? ▸ Command line interface for WordPress

    ▸ Install core ▸ Install, activate, remove plugins ▸ Install, activate, remove themes ▸ Add and remove pages, posts, sidebars, widgets ▸ Edit wp-config.php ▸ More info: https://wp-cli.org
  4. WPINSTALL WORDPRESS INSTALL CUSTOM BASH SCRIPT ▸ Creates local WordPress

    installation ▸ Hardens core ▸ Creates Bitbucket repo (or lets you clone existing repo) ▸ Removes Hello Dolly & Akismet, installs dev plugins ▸ Removes sample posts, adds pages, posts, widgets ▸ Installs starter theme + npm, gulp, sass support ▸ Customizes WordPress dashboard ▸ Opens site on Chrome and functions.php in Atom
  5. WPINSTALL REQUIREMENTS (AS IS) ▸ Sass ▸ Node, npm, gulp

    ▸ Bitbucket account ▸ Genesis framework ▸ git ▸ WordPress .gitignore ▸ Chrome ▸ Atom