A user seeks advice on moving a Discourse instance from one subdomain to another across different servers. The proposed method—backing up from the source server and restoring on the target server—works, but requires running script/discourse remap to update URLs. Initially, the remap command failed due to a missing thor gem, which was resolved by executing it as the discourse user. Avatars did not transfer during the restore, even with image inclusion in the backup, but were successfully recovered by manually copying the uploads/defaults directory from the source to the target server.
Note: Both instances below (server 1 and 2) running in docker containers on two different servers. Both servers running on both HTTP and HTTPS (ports 80 and 443) with Let’s Encrypt certs:
Discourse fully running on server 1 with IP address 1, both HTTP and HTTPS: discourse-test.example-domain.com
Discourse initialized and running (no additional posts or topics yet) on server 2 with IP address 2, both HTTP and HTTPS: talktime.example-domain.com
Goal:
Move all from server 1 (testing) to server 2 (production) changing domain from discourse-test.example-domain.com to talktime.example-domain.com
Proposed Approach:
Take a backup of Discourse on server 1
Restore backup of Discourse (from server 1) on server 2