Redeployment or reprovision - when each is needed

Thanks for your response @swalkinshaw! I’m sorry, never intended to hijack the thread; I considered it directly related because, like the OP, I also had the need to change an env setting (wp_siteurl) in group_vars/production/wordpress_sites.yml and was trying to figure out how to re-provision the production server to reflect this change, same as OP.

I re-ran the provision & deploy playbooks like you advised above, but the wp_siteurl was not updated in the database, so I thought to myself "hey, what if I dropped tables in case there is a check in the playbook for the existence of tables to determine whether or not to run a wp core install "… but the tables weren’t re-created when re-running the Ansible playbook.

…Contrary to the docs (and popular belief) the first time I ran Trellis in production it did create WordPress tables, much like it did for @royscheeren back in 12/2016 (FWIW I am also running a multisite install):

Hence the confusion :slight_smile:

If I have time I think I’ll make a docs PR to add info about wp-cli…

1 Like