forked from manveru/ramaze
-
Notifications
You must be signed in to change notification settings - Fork 37
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.
- Website
- Google Groups
- User Guide
- [#ramaze on the Freenode network] (http://webchat.freenode.net/?channels=ramaze)