rstacruz/sinatra-assetpack — Issue #34: Serving compressed files from public/
Author: mgauthier-so
Created: 2012-01-20 21:41:57+00:00
State: open

Hi I have a slight problem in that assetpack works awesome in development mode but fails to correctly create the compressed css file

Here is my setup

File structure
/
app/
public/
(assume folders referenced below exist in public)

My app.rb file is in app/ and here is the code to set up asset pack
#because my app.rb file is not in the root of the project
set :root, "./"
register Sinatra::AssetPack

assets {
serve '/js', from: 'public/assets/javascripts'
serve '/css', from: 'public/assets/stylesheets'
serve '/javascripts', from: 'public/javascripts'
serve '/mproducts', from: 'public/mproducts'
serve '/stylesheets', from: 'public/stylesheets'

css :product_css, [
'/css/pages/signup/signup.css',
'/css/pages/product/product.css',
'/css/shared/cart_popup.css'
]
}

In my haml view I have
!= css :product_css

The result in html is this

File not found: /product_css.748175.css (From Firebug)

Is there something obvious I'm missing?