We have a forum running in AWS, on a custom domain with SSL via LetsEncrypt and we’re looking to move to Digital Ocean, ideally without downtime. Is there a recommended best practice as I’ve encountered a variety of problems?
I first tried setting up the new instance and enabling LetsEncrypt but this caused all sorts of problems (e.g. SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE) – presumably because I was trying to set up the new instance using the same domain name in the configuration as the existing live site.
I then tried setting up the instance without SSL (but with the instance configured on the same domain name) and restoring a backup from the live site. This time the restore process failed with what looked like issues around the domain name.
Setting up a new instance on a new domain is really easy (thank you! ) but trying to create a new instance that I can then just do a DNS switch over to in order to migrate appears to be really hard. Unless, that is, I’m just doing it wrong!
I’m not making any promises, but if the current site is a standard install, you can copy over your the letsencrypt and ssl directories and those certs should get copied over and it’ll rebuild just fine. It can be a bit tricky, though.
Worst case, you’ll need to rebuild the site after the DNS switch.
You don’t need discourse-setup, just ./launcher rebuild app. You should be able to change your local DNS to point it to the new server and have it work.