The discussion revolves around synchronizing a Discourse INT environment with PROD, focusing on automating the process while preserving INT-specific configurations. Wurzelseppi asks about cloning PROD to INT regularly, preserving individual settings like hostname and SSL. RGJ suggests using rake site_settings:import for this purpose. Wurzelseppi shares their current method involving app.yaml and backups, then asks how to prevent email notifications to users during testing. Moin explains that the disable emails setting can be restricted to non-staff, preventing user emails while allowing staff to receive them. Wurzelseppi confirms this resolves their concern, and RGJ notes that this setting is automatically applied when restoring a backup.
We hebben een INT- en een prod-omgeving en het is momenteel moeilijk om alle verschillen bij te houden.
Is het op de een of andere manier mogelijk om de PROD-omgeving (onderwerpen / categorieën / instellingen / …) regelmatig naar INT te klonen en de individuele INT-zaken (hostnaam / ssl / e-mail / …) te behouden?
Moet ik dat handmatig doen (de individuele zaken ergens opslaan / klonen / de individuele zaken overschrijven met INT-specifieke zaken / …), of is er een discourse-tool die ik zou kunnen gebruiken?
Specificeer alle stage-individuele instellingen als hard-coded variabelen in app.yaml
Kopieer backup van prod naar int
Herstel deze
Bouw de app opnieuw
Hier werkt het tenminste, maar hier komt de volgende vraag: Hoe kan ik, zodat de instantie de gebruikers niet lastigvalt, alle instellingen die tot een e-mail aan de gebruikers kunnen leiden, deactiveren?
Persoonlijke e-mailinstellingen
Bekeken, gevolgde categorieën
…
Op dit moment heb ik de mailserver opzettelijk verkeerd geconfigureerd, maar op een dag als ik iets met e-mails wil testen…
There is a disable emails site setting. I think it’s automatically activated when you restore a backup. For testing, you could enable e-mails for staff only.