Migrazione a una nuova istanza presso un nuovo provider di hosting

Abbiamo un forum in esecuzione su AWS, con un dominio personalizzato e SSL tramite Let’s Encrypt, e stiamo valutando il passaggio a Digital Ocean, idealmente senza interruzioni del servizio. Esiste una best practice consigliata, dato che ho riscontrato una varietà di problemi?

Ho provato inizialmente a configurare la nuova istanza e abilitare Let’s Encrypt, ma questo ha causato tutti i tipi di problemi (ad esempio SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE), presumibilmente perché stavo cercando di configurare la nuova istanza utilizzando lo stesso nome di dominio presente nella configurazione del sito live esistente.

Ho poi provato a configurare l’istanza senza SSL (ma con l’istanza configurata sullo stesso nome di dominio) e a ripristinare un backup dal sito live. Questa volta il processo di ripristino è fallito con quello che sembravano problemi relativi al nome di dominio.

Configurare una nuova istanza su un nuovo dominio è davvero semplice (grazie! :pray:), ma cercare di creare una nuova istanza a cui poi fare un switch DNS per eseguire la migrazione sembra essere davvero difficile. A meno che, non sia che lo sto facendo semplicemente in modo errato!

Qualsiasi aiuto sarebbe apprezzato.

1 Mi Piace

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.

7 Mi Piace

Would INSTALL-cloud.md instructions work modified like this, on the new target host?:

sudo -s
git clone GitHub - discourse/discourse_docker: A Docker image for Discourse /var/discourse
cd /var/discourse
[copy letsencrypt, ssl directories & containers/app.yml from current running instance]
./discourse-setup

Then on to using the web UI to restore from backup, and DNS switch?

Any recommendations for tests to perform before the DNS switch?

Many thanks for any helpful pointers!

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.

1 Mi Piace

Excellent, thanks for the tips!