Closed afknapping closed 13 years ago
Have a look at dorothy's default config.ru
:
https://github.com/cloudhead/dorothy/blob/master/config.ru
# Rack config
use Rack::Static, :urls => ['/css', '/js', '/images', '/favicon.ico'], :root => 'public'
You have to introduce any directory you want to make available via your public root. The two usable ones are already addressed here, for adding the rest use
# Rack config
use Rack::Static, :urls => ['/css', '/js', '/images', '/prc', 'test', 'typefaces', '/favicon.ico'], :root => 'public'`
Guess that will do the trick.
Glad you're having a look at the tiniest blogging engine in Oz - enjoy!
Sven Kräuter | 5v3n
thx a lot!
didn't close.
i created new folders inside "public":
"js" and "images" are recognized and usable. i can link to files inside of them and when calling /js/ or /images/ i get a file not found error.
but the others, like /test/, produce a 404-error.
i would be thankful for a hint in the right direction.