Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I migrate apartment gem to Heroku correctly?

Amie Fudge asked in Rails

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

Reply

I am getting same issue.

Reply
Reply

will check it out thanks!

Reply

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.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 81,842+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2024 GoRails, LLC. All rights reserved.