# テストおよび開発用の環境変数の設定

**URL:** <https://meta.discourse.org/t/setting-environment-variables-for-test-and-development/138709>\
**Category:** Development\
**Created:** [2020 年 1 月 15 日午後 5:51 UTC](https://meta.discourse.org/t/setting-environment-variables-for-test-and-development/138709 "2020-01-15T17:51:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [2020 年 1 月 15 日午後 7:18 UTC](https://meta.discourse.org/t/setting-environment-variables-for-test-and-development/138709/4 "2020-01-15T19:18:44Z")

</div>

次に、以下のような環境変数を設定できると思います。

```
 DISCOURSE_MY_PLUGIN_SETTING

```

テストの場合は、spec 内で `GlobalSetting.my_plugin_setting` を設定するかもしれませんが、これはあくまで推測です。

---

_[View the full topic](https://meta.discourse.org/t/setting-environment-variables-for-test-and-development/138709)._
