rstacruz/sinatra-assetpack — Issue #45: Serve assets in production with assets pre-compiled into /public
Author: bporterfield
Created: 2012-03-08 04:27:53+00:00
State: open

Thanks for nice gem!

I'm looking for a way to serve pre-compiled assets in production. I see that you can add 'prebuild' to the config, which builds assets on app start, but because of certain restrictions I am not able to build in production.

I can invoke the rake task to precompile assets (it puts them into a /public folder), but I can find no way to tell sinatra-assetpack to just serve static files from that folder if I'm in production. Is there something simple I'm missing, or is this just not implemented?

Thanks!