This script builds a Wordpress site. It takes one argument, and uses that argument as the site name, db name, db user and db password. This is designed so that you can quickly spin up a site for testing purposes, etc.
Prerequisites:
- Have the WP-CLI installed on your development environment.
- Have root access to MySQL.
To get started:
- Clone the repo somewhere like www directory.
- Run the script, passing in the site name.
- If everything goes to plan you should have an installed wp site, with database configured.
- You will have to add a vhost for your site in apache or nginx.