Serving static subdirectories


#1

A client of mine wants to put a friends site up at blah.com/blah/

How should I go about setting that up when I blah.com is a rails app
managed by Capistrano and served via mongrel/apache?

Just add the blah folder in the public folder? That will be a pain
when I use cap no?


#2

As far as cap goes, that shouldn’t be a pain. Just put everything in
shared/blah and symlink like so:

task :after_symlink do
run “ln -nfs #{shared_path}/public/blah #{release_path}/public/blah”
end

Does that make sense?