subdomains question and rails

May 7, 2013 2.7k views
I don't know too much about configuring nginx/apache. Right now I have managed hosting elsewhere with several domains. I want to move one domain here so I can host a rails app on a subdomain (managed hosting has crappy rails implementation) and keep my static files on the main domain. So basically I want to (1) move the whole site over (there's not a lot there, a few directories with static pages) and (2) setup a subdomain with a rails app.
1 Answer
(1) I'd suggest you rsync the files over to your droplet, or tar them up and scp them if rsync is not available on your current hosting provider.
(2) Take a look at this article:
by Etel Sverdlov
This tutorial explains how to install Ruby, how to install any required dependancies, how to install Ruby Gems, how to install Rails, how to install Phusion Passenger, and how to use Passenger to install nginx. Passenger is an app server that allows you to deploy your rails application in production. This tutorial describes how to run Rails with nginx using passenger.
Have another answer? Share your knowledge.