rubyx-debugger/config.ru

18 lines
362 B
Plaintext
Raw Normal View History

2015-07-14 13:08:28 +02:00
require 'bundler'
Bundler.require
2015-08-20 02:14:33 +02:00
require 'tilt/erb'
2015-07-14 13:08:28 +02:00
require "opal"
2015-08-20 00:53:39 +02:00
require 'opal-browser'
Opal.use_gem("rubyx")
2015-07-14 13:08:28 +02:00
2018-04-16 20:23:29 +02:00
run Opal::Sprockets::Server.new do |s|
s.main = 'debugger.js.rb'
2015-07-14 13:08:28 +02:00
s.append_path 'lib'
2015-08-20 02:14:33 +02:00
s.append_path 'assets'
2018-04-04 12:16:59 +02:00
s.debug = !ENV["DEBUG"].nil?
2015-08-20 02:14:33 +02:00
s.index_path = "index.html.erb"
2018-04-04 12:16:59 +02:00
s.sprockets.cache = Sprockets::Cache::MemoryStore.new(10000)
2018-04-16 20:23:29 +02:00
end