commanded / eventstore

Event store using PostgreSQL for persistence
MIT License
1.06k stars 146 forks source link

Use runtime configuration in Mix tasks #236

Closed basilenouvellet closed 3 years ago

basilenouvellet commented 3 years ago

When Eventstore configuration is defined in config/runtime.exs (for example to load environment variables), the Mix task helper ensure_event_store!/2 needs to look at the runtime configuration as well.

The code change reflects what is being done by Ecto in ensure_repo/2.

slashdotdash commented 3 years ago

Thanks for the PR @BasileNouvellet.