本番環境からステージング環境への同期

Given we have different settings on a staging site, mainly

  1. Url is different
  2. Auth0 settings are different and
  3. 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.

  1. Export settings via console.
  2. backup production database to s3
  3. restore staging from s3
  4. restore settings via console.

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

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.

これはずっと失敗しています…「‘site_settings:export’ タスクのビルド方法がわかりません」と表示されます。

遅くなってしまいましたが、今後の参考のために、返信している投稿でリンクされているrakeタスクをセットアップしてから rake で利用できるようにする必要があります。