# ホストの環境変数でDiscourseをインストール

**URL:** https://meta.discourse.org/t/install-discourse-by-environment-variables-in-host/338032
**Category:** Self-hosting
**Created:** [2024 年 11 月 24 日午前 9:59 UTC](https://meta.discourse.org/t/install-discourse-by-environment-variables-in-host/338032 "2024-11-24T09:59:21Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)
#### Post date: [2024 年 11 月 24 日午前 9:59 UTC](https://meta.discourse.org/t/install-discourse-by-environment-variables-in-host/338032/1 "2024-11-24T09:59:21Z")

</div>

皆さん、こんにちは。

AWS CDK (Typescript) を使用して Discourse 環境をセットアップしています。  
環境変数やそれに類するものを使用して、discourse-setup なしで Discourse をサイレントにインストールする方法はありますか？

よろしくお願いします。

WS

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [2024 年 11 月 24 日午前 10:46 UTC](https://meta.discourse.org/t/install-discourse-by-environment-variables-in-host/338032/2 "2024-11-24T10:46:58Z")

</div>

`./discourse-setup` による設定は、初心者でも簡単に Discourse をセットアップできるようにするための方法です。

高度な使用方法については、`containers` ディレクトリにある yml 設定ファイルを編集してコンテナを設定します。

`./discourse-setup` は `containers/app.yml` を作成し、これを他のカスタマイズの基本設定として使用できます。

さらにカスタマイズを自動化したい場合は、このスレッドが役立つかもしれません: [Initial configuration directly from `app.yml` (discourse-docker / INSTALL-cloud.md)](https://meta.discourse.org/t/initial-configuration-directly-from-app-yml-discourse-docker-install-cloud-md/106488)

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2024 年 11 月 24 日午前 10:53 UTC](https://meta.discourse.org/t/install-discourse-by-environment-variables-in-host/338032/3 "2024-11-24T10:53:53Z")

</div>

標準インストールを実行する方が、#unsupported-install よりもずっと良いでしょう。サポートも受けやすくなります。  
なお、環境変数は Discourse の `app.yml` に保存されます。

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2024 年 11 月 24 日午前 11:41 UTC](https://meta.discourse.org/t/install-discourse-by-environment-variables-in-host/338032/4 "2024-11-24T11:41:34Z")

</div>

`launcher --start-cmd` を実行すると、必要な環境を取得できます。通常、データベースの移行とアセットの事前コンパイル、リポジトリにプッシュするイメージのビルドが必要になります。

やろうとしていることを実現するには、標準的なインストールでどのように機能するかを確認する必要があります。

---

<div class="post-metadata">

### Author: ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)
#### Post date: [2024 年 11 月 27 日午前 6:02 UTC](https://meta.discourse.org/t/install-discourse-by-environment-variables-in-host/338032/5 "2024-11-27T06:02:34Z")

</div>

あまり意味のあることではないかもしれませんが、試してみます 😃  
まずはインスタンスを正しく設定することに集中し、後で自動化する価値があるかどうかを見てみます。  
いずれにしても、ありがとうございます。  
いつもながら、ここで得られる助けの大きさに驚かされます。  
皆さんの活動に 👌 です。  
では、  
WS

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2024 年 12 月 27 日午前 6:02 UTC](https://meta.discourse.org/t/install-discourse-by-environment-variables-in-host/338032/6 "2024-12-27T06:02:35Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
