Created
December 8, 2022 19:39
-
-
Save Web-Assembler/55a039cdaf88ee1b0030ecbef88fa7d5 to your computer and use it in GitHub Desktop.
Spin up a fresh new WordPress installation with Laravel Valet.
This file contains hidden or 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 | |
# Script is run from Sites folder | |
echo "Ensure project is run from Sites folder." | |
read -p 'New project directory: ' projectName | |
# Create the directory | |
echo "Creating directory" | |
mkdir $projectName | |
# Set up Valet | |
echo "Linking project" | |
valet link $projectName | |
# SSL | |
echo "" | |
echo "Adding project SSL" | |
valet secure $projectName | |
# Get WordPress | |
echo "" | |
echo "Downloading Latest WordPress" | |
cd $projectName; wp core download --locale=en_GB --skip-plugins --skip-themes | |
echo "All done!" | |
cd "$projectName/wp-content/themes/"; open -a iTerm . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment