Skip to content

Instantly share code, notes, and snippets.

@digimix
Created August 16, 2016 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digimix/17c1098c96d3d9784ec0ac8ac31b5ec4 to your computer and use it in GitHub Desktop.
Save digimix/17c1098c96d3d9784ec0ac8ac31b5ec4 to your computer and use it in GitHub Desktop.
Run setup for Sage based WordPress themes on Bedrock provisioned by Trellis.
#!/bin/bash
echo -e "Which directory theme you like to setup?"
read theme
# Initiating Digimix theme setup
echo "Initiating Digimix theme setup"
cd /srv/www/digimix.co/current/web/app/themes/$theme
# install node modules
echo "install node modules"
npm install
# install bower components
echo "installing bower components"
bower install
# compile theme with gulp
echo "compiling theme with gulp"
gulp
cd /srv/www/digimix.co/current/web/app/$theme
echo "Digimix theme setup complete"
# Digimix theme setup complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment