deploy rails app in root domain

deploy rails app in root domain

Posted by: ddh
Posted on: 2006-04-18 01:59:00

I have been testing rails deployment on DH.
Deploying an app in a subdomain seems to work ok.

But how can I deploy my rails app in my rootdomain ?
I want the application to be found at www.mydomain.com

So I have two questions :
- how to deploy on my root domain (is this possible on DH ?)
- how to show a correct opening page ? I mean I don't want the default URL to be www.mydomain.com/myRailsController/, instead, I would like to 'hide' the default controller.

Any help (links, tutorials, whatever) is welcome

Re: deploy rails app in root domain

Posted by: kchrist
Posted on: 2006-04-18 09:08:00

how to deploy on my root domain

The same way you would in a subdomain. Move the application into the appropriate place and set the documentroot to /public, the same way you did with your subdomain.

how to show a correct opening page ?

Read up on routing. Start by looking at config/routes.rb

Re: deploy rails app in root domain

Posted by: ddh
Posted on: 2006-04-18 14:30:00

thx a lot
seems to work now ...

Tags: root domaindeploymydomainsubdomainwelcomehelp