Last active
October 5, 2021 19:47
-
-
Save trajche/7981006294cf2054b5c47277516acc4a to your computer and use it in GitHub Desktop.
Download and install a WP instance (Mac, Valet, MySQL)
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
mysql -u root -e "create database wp_sitename"; | |
wp core download | |
wp config create --dbname=wp_sitename --dbuser=root --dbpass= | |
wp core install --url=https://woocommerce.test --title=WooCommerce --admin_user=admin --admin_password=admin [email protected] | |
wp plugin uninstall akismet | |
wp plugin uninstall hello | |
wp plugin install woocommerce | |
wp rewrite structure '/%postname%/' | |
composer create-project roots/sage sage10 dev-master --working-dir=./wp-content/themes/ | |
yarn --cwd ./wp-content/themes/sage10 install | |
yarn --cwd ./wp-content/themes/sage10 build | |
valet secure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Parametrize: wp_sitename, sage10, woocommerce.test etc.