Multitenancy gem, using acts_as_tenant.
bundle install.
Implement the tenancy decision based on looking up the host name.