Questions tagged [sinatra-assetpack]

Sinatra-Assetpack is a Ruby gem that serves up CSS, JS, and image files to your Sinatra app, It minifies your production CSS and JS, enables "cache busting" for all files, and includes LESS, SCSS/SASS, and CoffeeScript support.

20 questions
1
vote
1 answer

Sinatra cache control is not working

This is what I have done to my server set :static_cache_control, [:public, {:max_age => 604800}] However, when I use firebug I still see 0 max-age. And I'm using Sinatra Assets Pack http://ricostacruz.com/sinatra-assetpack/ I'm not sure if they…
toy
  • 11,711
  • 24
  • 93
  • 176
1
vote
1 answer

Padrino + sinatra-assetpack not working

I'm trying to combine Padrino with Sinatra-Assetpack, without success. This is my Gemfile: source :rubygems gem 'rake' gem 'sinatra-flash', :require => 'sinatra/flash' # Component requirements gem 'haml' # Assets requirements gem…
0
votes
1 answer

sinatra app stalls in production mode when deployed via vagrant to a VM and provisioned by varnish and run as a deamon

I have a sinatra app, when I run it in production it acts odly. The first requests works, assets download and the page loads. If you refresh the page however the request just stalls, and nothing gets logged out to the log file. I'm running with…
Thermatix
  • 2,757
  • 21
  • 51
0
votes
1 answer

CoffeeScript doesn't compiles with Sinatra AssetPack

I'm using Sinatra AssetPack to manage assets in modular Sinatra application. It works great with JS files, but doesn't compiles CoffeeScript. I've added line js :app, ['/js/app.coffee'] into AssetPack conf at app.rb, just like in AssetPack readme on…
askhat
  • 59
  • 2
  • 19
0
votes
1 answer

Segmentation fault (core dumped) error in Sinatra App

I am getting an Segmentation fault (core dumped) and SystemStackError stack level too deep whenever I run my Sinatra app and try to load the index page. It immediately shuts down the app server (Thin). I can't figure out where I'm going wrong and…
codelitt
  • 366
  • 2
  • 13
1
2