rubyx-debugger/config.ru

19 lines
374 B
Plaintext
Raw Normal View History

2015-07-22 15:17:25 +02:00
# config.ru
require 'bundler'
Bundler.require
2015-07-22 22:08:36 +02:00
Opal.use_gem "salama"
Opal.use_gem "salama-arm"
2015-07-22 15:17:25 +02:00
require "react/source"
run Opal::Server.new {|s|
2015-07-22 15:26:46 +02:00
s.append_path 'app'
2015-07-23 12:15:44 +02:00
s.append_path 'lib'
2015-07-22 15:17:25 +02:00
s.append_path File.dirname(::React::Source.bundled_path_for("react-with-addons.js"))
s.main = 'debugger'
2015-07-22 15:17:25 +02:00
s.debug = true
s.source_map = true
s.index_path = "index.html.erb"
2015-07-22 15:17:25 +02:00
}