vigetlabs / wordpress-site-starter

2 stars 0 forks source link

Composer WordPress Installation #52

Open bd-viget opened 1 month ago

bd-viget commented 1 month ago

Summary

After WordPress has been downloaded in the post-install-cmd script, we need to run the wp core install command to install WordPress.

For existing projects, we might want to consider some kind of database migration script instead of installing the default WordPress database since the DB will be wiped anyway. An example would be when a 2nd dev is cloning the project, they would still want to download WordPress, but would not need to run the installer or any database cleanup items.

WP CLI Docs: wp core install: https://developer.wordpress.org/cli/commands/core/install/