multi-tenant rails app

wahmad
PRO

6 months ago

I have deployed a multi-tenant rails app in railway and added the wildcard custom domain, however when I enter the subdomain e.g. demo.e-kuttab.com it serves the main home page and does not take me to the demo tenant page,

What am I doing wrong, I have CNAME DNS records in cloudflare as instructed

Solved

3 Replies

6 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 6 months ago


wahmad
PRO

6 months ago

I am trying get the app working so I can upgrade and fully migrate to railway but kinda stuck on this point. The subdomain is not being set. Like I mentioned I have the correct CNAME records in cloudflare DNS, locally the app respect the subdomain and I am testing using lvh.me so e.g. demo.lvh.me etc

Any help here to get this working on railway would be much appreciated


6 months ago

I have no experience with Rails, but I know we pass down the host to your app, so it's just a matter of your app reading the incoming host properly.

https://utilities.up.railway.app/raw


wahmad
PRO

a month ago

All it was needed was adding a 2nd instance under public networking with a wildcard:

e-kuttab.com

*.e-kuttab.com

I reckon this thread can be closed.


Status changed to Solved brody about 1 month ago