Update WordpressΒΆ

Currently, we have two ways to update wordpress to latest version

  1. Via FTP: (not very secure) See https://codex.wordpress.org/Updating_WordPress, in normal condition the one-click install is enough, however, in practice, user(Linux user) that run wordpress is different from user that owns the files, so it can not override the files. In this case, the solution is usually providing ftp credential for wordpress.
  2. Via SSH: (recommended, very secure): using wp-cli: https://developer.wordpress.org/cli/commands/core/, an official wp tools. Usually, we will add one command on Jenkins, which backups and upgrades wp, so in case the update fails, we can roll back.