I always thought that links to real directories were pretty much the
same as real directories, but I've just discovered a situation where
they are not and I'm wondering if I'm doing something wrong...
I have a Ruby on Rails application running on a FreeBSD server. All
Rails apps use the same directory structure, that consists of an
application directory, plus a number of subdirectories. One of these
sub directories is called 'config'.
I would like to move this config directory out of the main Rails app
directory, and then add a link from the app directory to the moved
app --> config
app --> config(link) --> config
Basically, what I'm doing is:
cd ~/app # now in directory with real 'config' dir
mv config ~/shared/config
ln -s ~/shared/config config
That moves the directory and creates a functional link to it (I
tested it), but Rails doesn't like it and refuses to run the app. The
permissions are correct, I believe:
[mas...@on:current]> ls -l
... snip ...
drwxrwxr-x 3 master master 512 Mar 16 11:06 bin
drwxrwxr-x 3 master master 512 Mar 16 11:06 components
lrwxr-xr-x 1 master master 26 Mar 16 11:07 config -> /home/
drwxr-xr-x 4 master master 512 Mar 16 11:06 db
So, I guess a link is NOT exactly equivalent to a directory. At least
not the way I am doing it.
I'm guessing I'm making a real newbie mistake, so if anyone can set
me straight, I'd appreciate it.
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"