Skip to content

Instantly share code, notes, and snippets.

@denvercoder
Last active October 17, 2024 14:53
Show Gist options
  • Save denvercoder/d736fb95ba4fd05e49d33a739ae8956a to your computer and use it in GitHub Desktop.
Save denvercoder/d736fb95ba4fd05e49d33a739ae8956a to your computer and use it in GitHub Desktop.
My script to setup Roots.io Bedrock and Sage alongside Local by Flywheel
#!/bin/bash
cd ~/Local\ Sites/$1/app/
echo Installing Bedrock... Please Wait
composer create-project roots/bedrock
rm -rf public
cd ~/Local\ Sites/$1/app/bedrock/web/wp/wp-content/
rm -rf themes
mkdir themes
cd themes
composer create-project roots/sage $1
code ~/Local\ Sites/$1/app/bedrock/.env && code ~/Local\ Sites/$1/conf/nginx/site.conf
echo "****** Change "{{root}}"; To root "/Users/[yourUserNameHere]/Local Sites/testielocal/app/bedrock/web"; ******"
echo "****** Update .env With New DB and Domain Details ******"
@mnease
Copy link

mnease commented Aug 10, 2019

Thank you for this. It's very helpful!

@dinarakotozafy
Copy link

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment