deploy/README.md
changeset 14 30f2ac9a7656
parent 12 d9d75b93e132
child 23 5249c3c623a6
equal deleted inserted replaced
13:abe4451542dd 14:30f2ac9a7656
    11 ## configuration file:
    11 ## configuration file:
    12 
    12 
    13 - `hosts/hosts.<profile>`
    13 - `hosts/hosts.<profile>`
    14 - `group_vars/<profile>.yml`
    14 - `group_vars/<profile>.yml`
    15 - `host_vars/<hostname>/base.yml` base `host_vars/base.yml.tmpl`
    15 - `host_vars/<hostname>/base.yml` base `host_vars/base.yml.tmpl`
    16 `
    16 
       
    17 ## Database deploy
       
    18 
       
    19 - `deploy_db.sh [CONFIG] [DB_FILE_PATH] [ORIGIN_URL]`
       
    20 
       
    21 With:
       
    22 - `CONFIG`: test or prod
       
    23 - `DB_FILE_PATH`: The database definition file (SQL)
       
    24 - `ORIGIN_URL`: The site base URL matching the database file
       
    25 
       
    26 This script call the `deploy_db.yml` ansible script and perform the following operations
       
    27 - copy the sql file to the server
       
    28 - apply the sql file with wp-cli `db` command
       
    29 - search and replace the origin url (wp-cli search-replace)
       
    30 - set `template_root` option (wp-cli option)
       
    31 - delete _site_transient_update_themes and _site_transient_theme_roots options (wp-cli option)
       
    32 - update admin password (wp-cli user update)
       
    33 - flush cache (wp-cli cache flush)