Multi tenant Elixir / Phoenix
I'm starting to use Elixir and Phoenix. I want to use a multi-tenant database setup like the Apartment gem provides for Rails apps.
The core setup is this:
- Request comes in from specific subdomain
- Translate subdomain to specific tenant database
- Set the database to the tenant database