rstacruz / sinatra-assetpack

Package your assets transparently in Sinatra.
http://ricostacruz.com/sinatra-assetpack/
MIT License
541 stars 97 forks source link

Empty files when using SSL. #98

Closed renechz closed 11 years ago

renechz commented 11 years ago

Hi!

Just started using SSL on my app and ran into this issue:

Using Heroku, when enabling SSL (through rack-ssl gem) the compressed assets file either for CSS or JS is empty. I can see individual files fine (e.g. /stylesheets/file1.css) but still the compressed one is empty.

If I disable the SSL it works fine.

My configuration is like this:

assets do
  serve "/javascripts", from: "assets/javascripts"
  serve "/stylesheets", from: "assets/stylesheets"
  serve "/images",      from: "assets/images"

  css :application, ["/stylesheets/normalize.css", "/stylesheets/app.css"]
  ...
end

Any idea what might be causing this?

Thanks for your help.

j15e commented 11 years ago

See #68, its related to the same underlying issue I think.

j15e commented 11 years ago

Merged into #68