Hi, I am following this “tutorial” on dreamhost to deploy with sub
directories:
-
Upload your railsapp to ~/railsapp/.
** I have uploaded to /sharemyten.com/list/ (list is my railsapp folder) -
Make all necessary changes mentioned in the QuickStart Guide above.
** Did this… -
Create a symlink at the location you want the subdirectory that
points to ~/railsapp/public/:
$ cd ~/yourdomain.com/
$ ln -s ~/railsapp/public/ railsapp
**I put: ln -s ~/list/public/ list and I recieve “cannot overwrite
directory” Does anyone know why I am getting this? Obviously it is
because “list” is the same name as the folder, but shouldn’t it be?? Am
I doing something wrong here? -
That will mostly work, but your railsapp will still write URLs
incorrectly. To fix this, add the following line at the end of
~/railsapp/config/environment.rb:
ActionController::AbstractRequest.relative_url_root = “/railsapp”
**I put this in.
Any help would be greatly appreciated! I have been pulling my hair out
all day today trying to get this thing working.