DATABASE_URL with Phoenix, Ecto 3+ and Distillery
Running Gigalixir or Heroku? Containers? I’ve had multiple developers ask me how to set this up properly in this type of environment. Here’s a simple example on how you can rely on DATABASE_URL when it’s present (e.g. production) and resort to the phoenix config in other environments (e.g. development).
https://medium.com/@martin.samami/database-url-with-phoenix-ecto-3-and-distillery-26cda811c6a7