rubyx-debugger/config.ru
2018-04-16 21:23:29 +03:00

18 lines
362 B
Ruby

require 'bundler'
Bundler.require
require 'tilt/erb'
require "opal"
require 'opal-browser'
Opal.use_gem("rubyx")
run Opal::Sprockets::Server.new do |s|
s.main = 'debugger.js.rb'
s.append_path 'lib'
s.append_path 'assets'
s.debug = !ENV["DEBUG"].nil?
s.index_path = "index.html.erb"
s.sprockets.cache = Sprockets::Cache::MemoryStore.new(10000)
end