-
Notifications
You must be signed in to change notification settings - Fork 67
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
Does conform work without release? #138
Comments
I like to know as well if there is a way to use conform outside of releases. To have a single way to configure our application would be nice! |
Let me share what I have found so far. Both Elixir as well as Ecto has implemented defmodule MyApp.Repo do
use Ecto.Repo, otp_app: :my_app
def init(_, config) do
{:ok, Keyword.put(config, :url, System.get_env("DATABASE_URL"))}
end
end So this could be on one of places, where one can extract app level configuration from conform and shove it back to appconfig. But to be honest, I am still not really sure, if this is the right approach. Quite interesting thread at elixir-forum - https://elixirforum.com/t/always-use-releases/4573/18 |
This is something I think should be put on the main documentation. It seems it doesn't say anywhere that conform doesn't work out of the box with |
Is it possible to use conform like described in the docs when using
mix phx.server
(using phoenix) oriex -S mix
or withmix test
?I tried
iex
andtest
but both didn't seem to work. In both cases the value fromconfig.exs
was used when fetching the property withApplication.get_env()
.So is this lib only intended to use in conjunction with destillery or can it also be used in development / testing environments without a release?
The text was updated successfully, but these errors were encountered: