Skip to content

Using with dudestack and LEMP

Roni Laukkarinen edited this page Oct 7, 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. Install debuggers for gulp and for your editor
  5. Create a new project by using dudestack's createproject command (explained here)
  6. From Terminal cd into bin folder like cd /path/to/where/you/cloned/air-light/bin
  7. 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)
  8. Cd back to project directory cd ~/Projects/yourproject, run gulp and start coding