subdomains question and rails

Posted May 7, 2013 4.1k 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.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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.