在dreamhost主机上配置ruby on rails
I ran across the same problem as you. I followed the http://wiki.dreamhost.com/index.php/Ruby_on_Rails tutorial but realized (when I went to view the site) that I could see the rails folder structure. Here is what I did.
1.) Created the subdomain using the control panel. By default it places the directory in your home folder. It creates the folder “subdomain.yourdomain.com”
2.) Login via SSH and in the home directory run “rails subdomain.yourdomain.com”
This step creates the directory structure necessary for step 4
3.) Login to the control panel again and navigate to https://panel.dreamhost.com/index.cgi?tree=domain.manage&
Once you’re there, click on the subdomain’s “EDIT”
4.) Change the “Web Directory” setting from “/home/username/subdomain.yourdomain.com” to “/home/username/subdomain.yourdomain.com/public”
5.) Wait 10 minutes
6.) Hit the refresh button at subdomain.yourdomain.com
It’s funny that this type of tutorial doesn’t appear in the WIKI. Let’s see if I can edit it….
