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 -p
and 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_HOST
to127.0.0.1
- Ask for a copy of the
db.sql
file and place it in adb
directory- 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