Last active
October 17, 2024 14:53
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 ******" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you.