Deploy rails app in root domain

software development

#1

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


#2

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


If you want useful replies, ask smart questions.


#3

thx a lot
seems to work now …