The reason for Vapor Handling Environment Variables in Phoenix

Ecto & Multi-tenancy - Prefixes

The third and final part of the saga. This is what I ended up doing for my multi-tenant application using Ecto prefixes and PostgreSQL schema as a simpler alternative to dynamic repos.

https://underjord.io/ecto-multi-tenancy-prefixes-part-3.html