rstacruz / sinatra-assetpack

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

JS files not served in HEAD with Padrino #29

Closed runemadsen closed 11 years ago

runemadsen commented 12 years ago

Using Sinatra 1.3.1 and Padrino 0.10.5, no JS files are being served. There are no error in console, and css files are served perfectly.

This works with a test.scss file in /app/stylesheets: serve '/stylesheets', from: '/app/stylesheets' css :test, [ '/stylesheets/test.css' ]

This doesn't work with a test.js file in /app/javascripts: serve '/javascripts', from: '/app/javascripts' js :test, [ '/javascripts/test.js' ]

The code tag is inserted on the page, but I get a 404 when the browser tried to load the file. The file is never served to /javascripts.

I have to use HEAD because of the public folder problem in the published gem

j15e commented 11 years ago

Could you provide logs and/or more informations? Have you set app root?

j15e commented 11 years ago

Could you try latest Padrino & sinatra-assetpack? Now at 0.10.7 and it works for me

j15e commented 11 years ago

http://stackoverflow.com/questions/10140792/padrino-sinatra-assetpack-not-working