How do I migrate apartment gem to Heroku correctly?
I've implemented the apartment gem and am able to run it in my local environment. However, when I deployed to Heroku, the site won't load and I get this error in the logs Apartment::TenantNotFound (One of the following schema(s) is invalid: "immense-atoll-80386" "public"):
Has anyone run into this before? Any ideas on what I am missing
You have to add your "immense-atoll-80386" in Apartment::Elevators::Subdomain.excluded_subdomains = ['www', 'immense-atoll-80386'] in apartment.rb configuration.
This worked for me.