csmu
(Keith John Hutchison - Ceiteach Seán Mac Úistin)
22 Febrero, 2019 06:54
1
Given we have different settings on a staging site, mainly
Url is different
Auth0 settings are different and
Email is disabled
what would be a good way to get the latest data from a production discourse site into a staging site.
I’m thinking.
Export settings via console.
backup production database to s3
restore staging from s3
restore settings via console.
david
(David Taylor)
22 Febrero, 2019 10:23
2
That sounds like a good approach. We have a couple of rake tasks to help with exporting/importing site settings:
rake site_settings:export
and
rake site_settings:import
pfaffman
(Jay Pfaffman)
22 Febrero, 2019 11:22
3
I’ve also got a ruby app that will upload settings
Install a Discourse settings JSON file to a site
The auth0 config might be as simple as allowing the new site to the auth0 config.
If you don’t configure email, it doesn’t matter if you disable it.
Esto ha estado fallando para mí… dice No se sabe cómo construir la tarea 'site_settings:export'
erikds
(Erik )
24 Enero, 2023 19:25
5
Me doy cuenta de que esto es muy tarde, pero como referencia futura, necesitas configurar las tareas de rake vinculadas en la publicación a la que estás respondiendo antes de que estén disponibles a través de rake.