Open howardmann opened 5 years ago
working on this too @howardmann - any tricks up your sleeve now?
I'd love to get any tips on this too @mbhnyc @howardmann @dzuelke
There are a couple of steps to this, but it's totally possible to do.
wp-config.php
file to include the following:define('DB_NAME', 'myCoolDatabase');
define('DB_USER', 'wp_user');
define('DB_PASSWORD', 'wp_password');
define('DB_HOST', '127.0.0.1');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
In the mysql command line, you'll also need to do this:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
define('WP_CONTENT_DIR', dirname(__FILE__) . '/wp-content/');
to
define('WP_CONTENT_DIR', dirname(__FILE__) . '/wordpress/wp-content/');
This is because composer require some/package
will put it straight into the wp-content
file.
You'll also need to have the wp-cli
tools installed.
Assuming the above is in order, you can run wp server
from the terminal and inspect your site at http://localhost:8080
. From there you should be able to do the 5 minute setup.
I tried it, but my custom theme and additional plugins doesn't get load.
Hi there I am new to Wordpress and am struggling to run this repo locally. Any help would be much appreciated