forked from ruby-hyperloop/hyper-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ru
More file actions
26 lines (23 loc) · 713 Bytes
/
config.ru
File metadata and controls
26 lines (23 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'bundler'
Bundler.require
require "opal/rspec"
Opal::Config.arity_check_enabled = true
if Opal::RSpec.const_defined?("SprocketsEnvironment")
sprockets_env = Opal::RSpec::SprocketsEnvironment.new
sprockets_env.cache = Sprockets::Cache::FileStore.new("tmp")
sprockets_env.add_spec_paths_to_sprockets
run Opal::Server.new(sprockets: sprockets_env) { |s|
s.main = 'opal/rspec/sprockets_runner'
s.debug = false
s.append_path 'spec/vendor'
s.index_path = 'spec/index.html.erb'
}
else
run Opal::Server.new { |s|
s.main = 'opal/rspec/sprockets_runner'
s.append_path 'spec'
s.append_path 'spec/vendor'
s.debug = false
s.index_path = 'spec/index.html.erb'
}
end