diff -r abe4451542dd -r 30f2ac9a7656 deploy/README.md --- a/deploy/README.md Wed Jun 12 17:57:01 2019 +0200 +++ b/deploy/README.md Fri Jun 14 14:36:17 2019 +0200 @@ -13,4 +13,21 @@ - `hosts/hosts.` - `group_vars/.yml` - `host_vars//base.yml` base `host_vars/base.yml.tmpl` -` \ No newline at end of file + +## Database deploy + +- `deploy_db.sh [CONFIG] [DB_FILE_PATH] [ORIGIN_URL]` + +With: +- `CONFIG`: test or prod +- `DB_FILE_PATH`: The database definition file (SQL) +- `ORIGIN_URL`: The site base URL matching the database file + +This script call the `deploy_db.yml` ansible script and perform the following operations +- copy the sql file to the server +- apply the sql file with wp-cli `db` command +- search and replace the origin url (wp-cli search-replace) +- set `template_root` option (wp-cli option) +- delete _site_transient_update_themes and _site_transient_theme_roots options (wp-cli option) +- update admin password (wp-cli user update) +- flush cache (wp-cli cache flush)