简体   繁体   中英

Multi-tenancy rails application to heroko deployment

I have developed a Rails multi-tenancy application using Apartment gem which works fine locally and I am able to test it using lvh.me:3000/ but, couldn't able to deploy it to heroku. However, heroku push finishes it the normal deployment process on terminal. Basically, what I need is; instead of accessing myapp.herokapp.com I would like to be able to access subdomain.myapp.herokuapp.com. Currently, when I try access my app url, it's redirected to herko landing/homepage, ie may app is not configured as subdomain.myapp.herokuapp.com hostname.

Similar question asked more than two years ago: Subdomain with Rails and herokuapp

To do this you will need to set up a wildcard custom domain .

You won't be able to set this up using the herokuapp.com domain, unfortunately.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM