I’m currently running version 1.4.0.beta2 on an AWS-EC2 instance inside of a single Docker container (per instructions found here).
What is the safest way to go about upgrading to version 1.5.0? If something goes wrong is there a quick and easy way to switch back to the previously working version?
From other threads that I have read on the topic, as well as the included README file, it looks like the following is the suggested method of upgrade:
cd /var/discourse git pull ./launcher rebuild $appname
However, if this were to fail; what would be the quickest/best way to roll back to the previous working version? Should I re-instate my EC2 instance from a snapshot? Is there a way to quickly rebuild the container referencing the old image or image layer?