csmu
(Keith John Hutchison - Ceiteach Seán Mac Úistin)
2019 年 2 月 22 日午前 6: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.
「いいね!」 1
david
(David Taylor)
2019 年 2 月 22 日午前 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
「いいね!」 5
pfaffman
(Jay Pfaffman)
2019 年 2 月 22 日午前 11:22
3
I’ve also got a ruby app that will upload settings
https://github.com/pfaffman/discourse-settings-uploader
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.
「いいね!」 3
This has been failing for me… it says Don't know how to build task 'site_settings:export'
erikds
(Erik )
2023 年 1 月 24 日午後 7:25
5
I realize this is very late but for future reference, you need to set up the rake tasks linked in the post you are replying to before they will be available via rake
.
system
(system)
クローズされました:
2024 年 2 月 1 日午後 11:59
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.