There are many wonderful tutorials describing in great detail how to set up a horizontally scaled WordPress install in AWS' Elastic Beanstalk - that part is no problem. But I haven't found any follow-up advice yet on how to manage plugin updates after the initial setup, let alone updating wordpress-core itself. Does anybody know the most optimal way to do this?
This is the methodology I'm using so far, but I'm not sure if it is the best way:
- Download the plugin's update file and unzip it. Remove and replace the relevant folder in /wp-content/plugins (local git repo)
- Run the update in the live site like normal - to ensure that any database changes get pushed up to the RDS
eb deployfrom the local repo to commit the file changes and make the update persistent
Is that a sane method? Could anything get corrupted down the line?
For updating wp-core, the tutorials I've read seem overcomplicated - basically rebuild the site from scratch every time an update comes out. Below is what I have been using (used it successfully for WP 5.0.2). Is there any chance of files and databases getting out of sync using this method?
- Download and unzip the new wordpress version locally
- Replace wp-admin, wp-includes, and the root files except for wp-config.php (local git repo)
- Run the update in the live environment, so that any database changes get pushed up to RDS.
eb deploy