lib/pieces/server.rb in pieces-0.5.0 vs lib/pieces/server.rb in pieces-0.5.1
- old
+ new
@@ -34,11 +34,11 @@
build_path = "#{config.path}/build"
assets_app = sprockets_env
Rack::Builder.app do
use Rack::Reloader
- use Rack::Static, urls: [''], root: build_path, index: 'index.html'
map('/assets') { run assets_app } unless defined? ::Rails
+ use Rack::Static, urls: [''], root: build_path, index: 'index.html'
run Proc.new { |env| [404, {}, ['Not found']] }
end
end
private