Skip to content

Add ability to patch WordPress remotely via Deployer - #31

Open
simonrjones wants to merge 5 commits into
mainfrom
feature/patch-wordpress
Open

simonrjones wants to merge 5 commits into
mainfrom
feature/patch-wordpress

Conversation

@simonrjones

Copy link
Copy Markdown
Member

This adds a wordpress:patch task to Deployer for WP CLI and Composer, which:

  • Runs WP minor updates (via WP CLI or Composer)
  • Tests the homepage
  • If it fails, rolls back

Please note this assumes WP Core files are writable by the deploy user, which may not work in all cases.

This may help us speed up security updates.

@sean-dunwoody sean-dunwoody left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, although as part of the process, the wp core update-db command (see: https://developer.wordpress.org/cli/commands/core/update-db/) should be run after the updated WP Core files are deployed to the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants