UCDavisLibrary / main-wp-website-deployment

Deployment files and commands for library.ucdavis.edu
1 stars 1 forks source link

Added wp-cli to init, modified object updates. #29

Closed qjhart closed 2 years ago

qjhart commented 2 years ago

The following PR adds the ability to use wp-cli from the init script. This allows JSON updates to postmeta and/or options. The run.sh has been updated to always look for differences between the WP site_url and the .env SITE_URL.

This allows patches to things like postmeta redirects and contact info.

spelkey-ucd commented 2 years ago

@qjhart i believe I already did most of this. however, instead of installing the wp cli in the init dockerfile (which justin renamed to utils), i used our main wordpress image (which has the cli installed) as the base image.

qjhart commented 2 years ago

That's fine, I saw that, but couldn't figure out a good way to include in the init container. I'll close this and drop the branch