When playing with Phoenix @finnhodgkin and I have found the need to use Environment Variables, which we tussled a little bit with.
The System module allows us to get Environment Variables by keys, like so: System.get_env("my_api_key")
You can set the Environment Variables with the source bash command, but this has to be re-run in every new instance of a shell, which isn't ideal.
The Envy Elixir module solves this problem and was quite simple to set up (even for a Phoenix noob like myself).
I think a small section on how to set up Envy and use Environment Variables would be a good addition to this repo, since using Environment Variables to hide secret stuff is super important!
I'm super happy to make a PR doing so if the community think it would be a good addition!
When playing with Phoenix @finnhodgkin and I have found the need to use Environment Variables, which we tussled a little bit with.
The
System
module allows us to get Environment Variables by keys, like so:System.get_env("my_api_key")
You can set the Environment Variables with the
source
bash command, but this has to be re-run in every new instance of a shell, which isn't ideal.The
Envy
Elixir module solves this problem and was quite simple to set up (even for a Phoenix noob like myself).I think a small section on how to set up Envy and use Environment Variables would be a good addition to this repo, since using Environment Variables to hide secret stuff is super important!
I'm super happy to make a PR doing so if the community think it would be a good addition!