Dagelijkse synchronisatie naar de INT-omgeving?

AI-generated summary

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.

Hallo jongens,

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?

Alvast hartelijk dank en groeten,

JP

There is rake site_settings:import

See Restoring forum to a new server - #2 by csmu

Hallo allemaal,

Het is eigenlijk zo simpel als:

  • 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…

Ideeën?

Bedankt en groeten,

WS

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.

Hey @Moin (that´s a German term for good morning, I like that :slight_smile: )

thanks for your answer. I´m aware of that option, but I´m afraid as soon as I activate it there will be a flood of mails going out.

What did you mean by

How would that be possible without reenabling the whole mail thing and don´t spam the users ?

The only thing I can imagine is to switch off the mail related user specific settings via rake console for every user.

Or

Would any of these

  • Deactivate
  • Stage
  • Suspend
  • Silence

do the trick ?

Cheers and thanks again,

WS

By choosing to disable emails for non-staff

Doh, that would be possible, yes :see_no_evil_monkey:

Thanks, I forgot completely, there is that “non-staff” option in that field :frowning:

Have a great day and thanks!

WS

That option is set automatically when you restore a backup, so you don’t need to do anything extra.