How do I serve nested static content on Heroku?

Posted by Matthew Murdoch on Stack Overflow See other posts from Stack Overflow or by Matthew Murdoch
Published on 2010-04-21T20:50:20Z Indexed on 2010/04/21 20:53 UTC
Read the original article Hit count: 365

Filed under:
|
|
|

I have a rails application with static content in the public directory (e.g. public/index.html) and additional static content in nested subdirectories (e.g. public/one/two/index.html).

All the static content is served correctly if I run it locally via script/server but when I upload it to Heroku the top-level page loads correctly but the nested content returns a 404.

I've found a number of resources (for example this question) which discuss static content in rails but they all seem to assume a fairly simple structure with a single directory containing all the files.

Is there any way I can fix this?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about rails