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"
|
|
|
|
|
|
|
|
|
2015-07-22 16:10:50 +02:00
|
|
|
run Opal::Server.new {|s|
|
2015-07-22 15:26:46 +02:00
|
|
|
s.append_path 'app'
|
2015-07-22 15:17:25 +02:00
|
|
|
s.append_path File.dirname(::React::Source.bundled_path_for("react-with-addons.js"))
|
2015-07-22 16:10:50 +02:00
|
|
|
s.main = 'debugger'
|
2015-07-22 15:17:25 +02:00
|
|
|
s.debug = true
|
|
|
|
s.source_map = true
|
2015-07-22 16:10:50 +02:00
|
|
|
s.index_path = "index.html.erb"
|
2015-07-22 15:17:25 +02:00
|
|
|
}
|