In a discussion titled “Restoring forum to a new server” under the Support category, markwill seeks advice on mirroring a Discourse forum for staging, specifically addressing two concerns: redirecting WordPress SSO login to the mirror domain and preventing emails from being sent from the mirrored site. csmu shares a script that exports site settings, restores the latest backup, and reimports settings—helpful for syncing production to staging—and references a meta.discourse.org thread for context. csmu and codinghorror both confirm that disabling email can be done via site settings—either fully or limited to staff—via the admin panel at https://{fully-qualified-domain-name}/admin/site_settings/category/email?filter=disable%20email. markwill concludes by thanking the community, noting the responses provide all needed guidance.
For the various production services I run (WordPress sites, etc) I like to run a second, “mirror” site, as well as the production site. For example, I might have www.mydomain.com and also mirror.mydomain.com. The latter is created by cloning from the production site and then disabling a couple of processes that don’t need to run.
I’d like to do the same with my forum. As I understand, the restore function is “all in”, it restores not just the data (topics, etc) but also the entire configuration. That leaves me with two issues I’d like to understand better.
I use WordPress SSO. After the restore is complete I want the mirror-forum.mydomain.com Discourse site to point to mirror.mydomain.com, as the logon source. How would I modify the mirrored forum site (catch 22 of course - after restore and logging on, the mirrored site would presumably point to the production site)?
I want to be 100% sure that no eMails are sent from the mirrored forum site. Again, if I restore to the mirrored forum site then I assume all the scheduled tasks from the production site (sending digest emails to users, etc) will be scheduled, right? How can I avoid that? Is there a central location to turn off ALL eMails from that server?
How can I approach this?
Thank you.
csmu
(Keith John Hutchison - Ceiteach Seán Mac Úistin)
2