Reputation: 5472
So basically I need some Ecto repository information (call it "Sample.Repo") to start the repo in a release task for Ecto 3. It's configured in a runtime config with a custom json config provider as described in https://hexdocs.pm/distillery/2.0.0-rc.5/config_providers.html.
When I do something like:
Application.get_env(:my_app, Sample.Repo)
I get back nil.
Is there a way to get the runtime config value in a release task or if not, what is an alternative solution?
Upvotes: 2
Views: 149