Skip to content

Instantly share code, notes, and snippets.

@jasperf
Last active August 6, 2018 03:39
Show Gist options
  • Save jasperf/bd95f490f35203ae67f7 to your computer and use it in GitHub Desktop.
Save jasperf/bd95f490f35203ae67f7 to your computer and use it in GitHub Desktop.
Setup Trellis with Bedrock Based Site and Sage starters theme using site folder rukn.me (you can add your own folder name and will add a variable asap) in a bash script #roots #wordpress
#!/bin/bash
echo "Setting up Roots Trellis with Bedrock
Requirements
Ansible >= 1.9.2
Virtualbox >= 4.3.10 - Install
Vagrant >= 1.5.4
vagrant-bindfs >= 0.3.1 (Windows users may skip this)
vagrant-hostsupdater
PHP >=5.4
Composer"
cd ~/webdesign/
mkdir rukn.me && cd rukn.me
git clone https://github.com/roots/trellis.git trellis
cd trellis/ && ls
ansible-galaxy install -r requirements.yml
cd ..
git clone https://github.com/roots/bedrock.git site
echo "Show Bedrock structure"
cd ~/webdesign/rukn.me/site/ && tree -L 2
echo "Set up Sage theme"
cd ~/webdesign/rukn.me/site/web/app/themes/
git clone https://github.com/roots/sage.git rukn
echo "Show Sage Structure"
cd ~/webdesign/rukn.me/site/web/app/themes/rukn
tree -L 2
echo "Change at least the development envs to get started locally by editing development and
do a vagrant up once this is done inside your Trellis folder"
cd ~/webdesign/rukn.me/trellis/group_vars/ && ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment