Created
August 1, 2018 19:51
-
-
Save gjreasoner/fede05b8c910fda2ed399cfdff5c7013 to your computer and use it in GitHub Desktop.
Install WordPress on a Mac Dev Machine
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
#!/usr/bin/env bash | |
# | |
# README | |
# | |
# 1) Download this file `wget gisturl/` | |
# 2) Copy the file to bin `mv ~/Downloads/wp-install.sh /usr/local/bin/wp-install` | |
# 3) Set proper file permissions `chmod +x /usr/local/bin/wp-install` | |
# 4) Now you can use the command to start a fresh wordpress install right away | |
# `wp-install my-new-test-site` | |
# | |
SITE_NAME=$1 | |
cd ~/git | |
mkdir $SITE_NAME | |
cd $SITE_NAME | |
wp core download | |
mysql -u root -e "create database $SITE_NAME" -p | |
wp config create --dbname=$SITE_NAME --dbuser=root | |
wp core install --url="http://$SITE_NAME.test" --title="$SITE_NAME" --admin_user="$SITE_NAME" --admin_email="design@webjarvis.com" | |
wp plugin install all-in-one-wp-migration --activate | |
wp plugin install ~/Documents/advanced-custom-fields-pro.zip --activate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment