All threads / How do I migrate apartment gem to Heroku correctly?
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

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.

Join the discussion

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

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

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

    logo Created with Sketch.

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

    © 2022 GoRails, LLC. All rights reserved.