I'm currently using jekyll inside a rails app to generate static pages that can be served directly from the public directory. The only issue is that, when I run jekyll, it deletes all files in the public directory that aren't being generated by jekyll.
I understand this behavior is necessary (and desired) for standalone usage. So I added a configuration option which allows the developer to skip the cleanup step if desired.
Added cleanup config
A replacement for this is forthcoming. Check out @MikeSchroll's comment on #337. If we include certain items to keep, that may be better than everything.
A more targeted approach will be preferable to this one. Thanks, though!