Skip to content

Using with dudestack and LEMP

Roni Laukkarinen edited this page Apr 16, 2021 · 4 revisions

Using Air-light with our WordPress stack and development environment

This is an option we at here Dude agency use.

Please note: This way requires many packages and is a bit of work to get up and running. We recommend you read all the documentation thoroughly. You can always use your own setup and try option 2.

  1. Follow instructions to install macos-lemp-stack
  2. Ensure that http://localhost works and ~/Projects is linked to /var/www and both exist
  3. Install dudestack by following instructions provided in the repository
  4. Create a new project by using dudestack's createproject command (explained here)
  5. From Terminal cd into bin folder like cd /path/to/where/you/cloned/air-light/bin
  6. Run sh newtheme.sh - the script takes care of the rest (updates textdomain with your project name, checks updates for air and npm packages, runs npm install, fetches devpackages, sets up gulp, cleans up the leftover files and activates the theme via wp-cli)
  7. Cd back to project directory cd ~/Projects/yourproject, run gulp and start coding