rubyx-debugger/config.ru
2015-07-22 23:08:36 +03:00

18 lines
352 B
Ruby

# config.ru
require 'bundler'
Bundler.require
Opal.use_gem "salama"
Opal.use_gem "salama-arm"
require "react/source"
run Opal::Server.new {|s|
s.append_path 'app'
s.append_path File.dirname(::React::Source.bundled_path_for("react-with-addons.js"))
s.main = 'debugger'
s.debug = true
s.source_map = true
s.index_path = "index.html.erb"
}