5

I currently am creating a multi-tenant application using Rails, Heroku and the Apartment gem. ( Please note I am aware of the limitations of using the multitenant app structure on Heroku for more than 10 different databases ). I properly set up my application and have the subdomains working properly locally using lvh.me.

Since pushing to XXX-staging.herokuapp.com, the XXX-staging is already a subdomain so it's throwing the error:

Apartment::TenantNotFound (One of the following schema(s) is invalid: "XXX-staging" "public"):

Is there a way around testing subdomains on Heroku staging environments or is the only way to buy an alternative URL with another SSL wildcard? I'd prefer if that wasn't what I had to do, since it can be costly.

srt32
  • 1,260
  • 1
  • 14
  • 27
LMo
  • 1,429
  • 2
  • 15
  • 32

0 Answers0