There are a few prerequisites for local development.
- Run
git clone repo.git
- Run
cd repo - Run
wp core download
- Make sure you have MySql installed by running
which mysql
- Open mysql
mysql -uroot -pand enter root password (default: root) - Run
CREATE DATABASE dbname; - Run
CREATE USER 'username'@'%' IDENTIFIED BY 'userpass'; - Run
GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION; - Run
exit;
- Run
wp config create --dbname=dbname --dbuser=username --dbpass=userpass
- Depending on your mysql setup you may need to change the
DB_HOSTto127.0.0.1 - Ask for a copy of the
db.sqlfile and place it in adbdirectory- If the file's extension is .gz you'll need to run
gzip -d db/db.sql.gz
- If the file's extension is .gz you'll need to run
- Run
wp db import db/db.sql
- Run
wp server - Navigate to
http://localhost:8080/wp-admin/ - Navigate to Elementor Settings and Regenerate Styles
- Celebrate