Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
add rails root public dir to jasmine server
Browse files Browse the repository at this point in the history
  • Loading branch information
diclophis committed Mar 26, 2015
1 parent c055f9e commit b07dd3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jasmine/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def self.app(config)

map('/') do
run Rack::Cascade.new([
Rack::URLMap.new('/' => Rack::File.new(Rails.root.join("public"))),
Rack::URLMap.new('/' => Rack::File.new(config.src_dir)),
Jasmine::RunAdapter.new(config)
])
Expand Down

0 comments on commit b07dd3c

Please sign in to comment.