i have a symlink in my public_html/railsapp folder.
when i go to railsapp.com, i see the structure of railsapp (i.e. it shows parent directory at the top of the page, with 2 folders, one symlink'd to my rails app and another cgi, plus an index_old.html file.)
if i navigate to railsapp/public then my routes.rb file takes over and routes me to my dedicated index page. ( i changed it up so it didn't go to index but /controller/index.)
having not seen an answer other then change public_html (i have 6 other sites in that directory that shouldn't have to be effected).
i hope this thread doesn't dry up. shared hosts and ruby are supposed to be easy!
From the 'gotta help myself cause no one else is gonna' dept.
- Step one, make sure you are on a rails enabled server with lunarpages.
step two, ask them to setup your rails app on the server. All this means is that you email email@example.com and ask that they setup a rails app named "yourapp". (you fill in yourapp with the name of your own, but for this demo, i'm using yourapp).
- Step three, ftp all the files you need to your new "yourapp" folder. If you are programming in rails, you know how to do this or at least figure it out. you also know what files are important. let's face it, i'm assuming some knowledge of rails and computers here.
- Step four, delete the existing addon domain folder in /home/user/public_html/. THIS IS THE PART THEY DON'T TELL YOU. this part screwed me for 4 days.
- Step five, symlink to yourapp/public with the following command
ln -s /home/user/yourapp/public /home/user/public_html/addondomainname/
you can symlink in a cron job, just remember to delete it, especially if you are on my server... unnecessary running cron jobs slow us all down.[/li]
- step six, go to your url and rejoice.
In a nutshell, if your addon name exists in public_html, either rename the folder, or if there isn't anything in there of value, delete it.