# Setting environment variables for test and development

**URL:** <https://meta.discourse.org/t/setting-environment-variables-for-test-and-development/138709>\
**Category:** Development\
**Created:** [January 15, 2020, 5:51pm 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:** 1

<div class="post-metadata">

**Author:** ![jamesmarkcook](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesmarkcook/32/168563_2.png) [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)\
**Post date:** [January 15, 2020, 5:51pm UTC](https://meta.discourse.org/t/setting-environment-variables-for-test-and-development/138709/1 "2020-01-15T17:51:57Z")

</div>

I’m thinking of adding the dotenv gem ([GitHub - bkeepers/dotenv: A Ruby gem to load environment variables from `.env`. · GitHub](https://github.com/bkeepers/dotenv)) to my plugin for testing and development purposes. This is so that I can easily set my environment variables per environment.

I was wondering if I’m missing something and there’s a better way of achieving this?

---

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