Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make a "sprockets_prefix" setting

  • Loading branch information...
commit b95d5a0fc53714848931a99ca488ad94926cee20 1 parent 0295474
Peter Graham authored
Showing with 2 additions and 1 deletion.
  1. +1 −1  config.ru
  2. +1 −0  server/application.rb
2  config.ru
View
@@ -1,7 +1,7 @@
require './server/application'
if App.settings.respond_to?(:sprockets)
- map '/assets' do
+ map App.settings.sprockets_prefix do
run App.settings.sprockets
end
end
1  server/application.rb
View
@@ -46,6 +46,7 @@ class App < Sinatra::Base
set :dump_errors, true
set :show_exceptions, true
set :sprockets, SprocketsEnvironmentBuilder.build(ENV['RACK_ENV'])
+ set :sprockets_prefix, '/assets'
end
configure :production do
Please sign in to comment.
Something went wrong with that request. Please try again.