28 Feb
Posted by dan as Ruby on Rails
Tags: commands, deployment, production, rails
If your rails apps are placed in one directory and you use a symbolic link to the public folder from your public directory, this info is for you. A hosting company, for example, might have you do this and my host is one of them.
The issue is, after creating the symbolic link, the url just displays a directory listing. I do remember reading about a user having a similar issue, although I have forgotten exactly where, so I decided to write a post about it. If you are in your public_html folder and would like your app to be at the url, example.com/my_app/, when using the command,
ln -s /path/to/my/project/app/public my_app
you need to make sure that the folder, my_app, does not already exist. Otherwise, you will just see a directory listing.
Tags: commands, deployment, production, rails
RSS feed for comments on this post · TrackBack URI
Leave a reply