csmu
(Keith John Hutchison - Ceiteach Seán Mac Úistin)
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)
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)
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.
이 문제가 계속 발생하고 있습니다… Don't know how to build task 'site_settings:export'라는 오류가 뜹니다.
erikds
(Erik )
5
이게 매우 늦은 답변이라는 걸 알지만, 향후 참고를 위해, rake를 통해 사용할 수 있으려면 답글을 달고 있는 게시물에 링크된 rake 태스크를 먼저 설정해야 합니다.