# Discourse のテスト環境と本番環境における最適なアプローチ

**URL:** <https://meta.discourse.org/t/best-approach-for-test-and-production-instance-of-discourse/125235>\
**Category:** Self-hosting\
**Created:** [2019 年 8 月 8 日午後 2:38 UTC](https://meta.discourse.org/t/best-approach-for-test-and-production-instance-of-discourse/125235 "2019-08-08T14:38:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![PackElend](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/packelend/32/95294_2.png) [@PackElend](https://meta.discourse.org/u/PackElend)\
**Post date:** [2019 年 8 月 8 日午後 2:38 UTC](https://meta.discourse.org/t/best-approach-for-test-and-production-instance-of-discourse/125235/1 "2019-08-08T14:38:36Z")

</div>

こんにちは、

[ガイド](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) に従って、Digital Ocean のクラウドサーバー上に Discourse インスタンスを作成しようとしています。

最初は、Discourse をスリム/デフォルト構成で運用し、段階的に拡張していく予定です。学習のために、テストインスタンスを時々利用したいと考えています。

その際、どちらのアプローチが賢明でしょうか？

1. [リバースプロキシを介した同じサーバー上での運用](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247)
2. [マルチサイト構成](https://meta.discourse.org/t/multisite-configuration-with-docker/14084)

これらは、[ホスト上でサンドボックスおよびテスト環境の Discourse を運用する](https://meta.discourse.org/t/sandbox-and-test-discourse-on-host/53625) というトピックでまとめられています。

最初の選択肢は、[1 つのサーバー上に 2 つのスタンドアロンインスタンスを運用する](https://meta.discourse.org/t/two-standalone-instances-on-one-server/60551/26) という回答にある通り、より多くの RAM を必要としますが、テスト環境は時々しか使用しないため問題ないと考えています。

この質問に関連する他のトピックも存在します：

1. [1 つのサーバー内で複数の Discourse インスタンスを運用する](https://meta.discourse.org/t/multiple-discourse-instances-in-a-single-server/88723)
2. [Discourse と同じマシン上で他のウェブサイトを運用する](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247)

しかし、これらについてはメリット・デメリットの比較が示されていません。

この取り組みのもう一つの目的は、以下の操作に慣れることです：

1. バックアップ
2. 場所の移動（リロケーション）
3. コンテンツの移行
4. 設定の移行
5. 単一の議論（スレッド）の移行

具体的なユースケースとしては、本番インスタンスで何かを議論し、フォーラムの内容（データベース全体）を移動してテストインスタンスで検証した後、変更された設定をコピーし、プラグインのテスト・承認を経て、単一の議論のエクスポート/インポートによって本番環境に戻す、という流れです。

---

_[View the full topic](https://meta.discourse.org/t/best-approach-for-test-and-production-instance-of-discourse/125235)._
