Skip to content

Serving several static assets directory

Michel Blanc edited this page Aug 11, 2012 · 1 revision

You can use the solution mentioned elsewhere (Mounting another rack application) or go a simpler path by asking Ramaze to server another directory. Just append the directory to server to the Ramaze.options.roots. Static documents in the public directory within will be served by Ramaze.

# This will lookup for static files in
# /home/me/myapp/otherdir/public too
Ramaze.options.roots.push('/home/me/myapp/otherdir')

You can add this code to your app.rb for instance.

Clone this wiki locally