How to I make a rails app run just on a subdomain? -


i run multiple rails apps on 1 domain name.

ex: app1.expample.com , app2.example.com

right have root routes pointing

root 'pages#home' "/" => "pages#home" 

how change run on subdomain root?

since said "multiple rails apps" assuming not mean multi-tenant app acts multiple subdomains.

this have more dns , webserver configuration app configuration. want install different apps virtual host configurations in apache, nginx etc. if using heroku easy have manage dns.

i running multiple docker containers behind nginx reverse proxy routes virtual hosts apps serving different ports on docker host involve bit more setup.


Comments

Popular posts from this blog

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - JavaScript + Thymeleaf - select onchange -

node.js - Using Node without global install -