-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config/runtime.exs #38
Comments
@ksmithut interesting! Do you know where I can learn more about I don't personally use releases, so your best bet is trying dotenv with |
@iloveitaly Ya, their hex docs are very sparse... Looks like the best one I could find was their 1.11 release announcement. So I haven't tried building it with releases, but I put this at the top of my
|
I'm still tweaking usage, I'm still pretty new to Elixir. Right now my setup isn't working with releases, but I'm diving in to get a setup that works. I'll let you know what I find. |
Okay, I was able to get it to work with that tweak with one minor alteration. In my import Config
Dotenv.load!() And it loads from my |
@ksmithut nice, that's awesome! Do you know if |
I believe runtime loads in prod as well, though you could probably do a check for the environment before calling |
This discussion may be useful: https://elixirforum.com/t/what-cannot-be-runtime-config/38499/9 A couple takeaways:
|
In my testing, this package worked fine with releases. I included an example of this in PR #40
|
In your README, you state that this isn't compatible with Elixir Releases because you can't use this module at compile time, which makes sense. But in Elixir 11, they added a new runtime configuration file documented here. Could you document how one might use this module using this
config/runtime.exs
file? Or is it still not possible?The text was updated successfully, but these errors were encountered: