Closed runemadsen closed 11 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' ]
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' ]
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
Could you provide logs and/or more informations? Have you set app root?
Could you try latest Padrino & sinatra-assetpack? Now at 0.10.7 and it works for me
http://stackoverflow.com/questions/10140792/padrino-sinatra-assetpack-not-working
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