Skip to content

Instantly share code, notes, and snippets.

@nicolascine
Forked from jasperf/trellis-bedrock-sage.sh
Created August 6, 2018 03:39
Show Gist options
  • Save nicolascine/a813b39085db0ec9a52f30f610956fea to your computer and use it in GitHub Desktop.
Save nicolascine/a813b39085db0ec9a52f30f610956fea 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