A2 Hosting Forums

Full Version: Rails and subdomains
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm about ready to deploy my rails app and have realized that I'm deploying to a subdomain. And in fact the parent folder (main account) will also have a rails app installed. How is this possible? Can anyone give me some advice on how to do this?

Matt

goodieboy Wrote:
Hi,

I'm about ready to deploy my rails app and have realized that I'm deploying to a subdomain. And in fact the parent folder (main account) will also have a rails app installed. How is this possible? Can anyone give me some advice on how to do this?

Matt


I've never done this, but I have a suggestion. You can put an exception in your .htaccess file in the parent rails app's public folder for the subdomain directory/symbolic link (i.e. exclude requests to yourdomain.com/subdomain from being sent to the dispatch file). That should exclude the main rails app from processing at all, and the subdomain ought to get the requests.

Reference URL's