jrallison / rollout_ui

RolloutUI: A slick way to rollout features in your web app.
MIT License
137 stars 86 forks source link

Unclear errors when setting up #7

Open pehrlich opened 12 years ago

pehrlich commented 12 years ago

Incorrect config.ru, rails 3.0.9:

run Rack::URLMap.new \
  "/" => MyApp::Application,
  "/admin/rollout" => RolloutUi::Server.new

Correct, as shown in readme here and on rollout gem:

# fixes: undefined method `smembers' for nil:NilClass 
$redis   = Redis.new
# fixes: uninitialized class variable @@rollout in RolloutUi 
$rollout = Rollout.new($redis)
RolloutUi.wrap($rollout)

run Rack::URLMap.new \
  "/" => MyApp::Application,
  "/admin/rollout" => RolloutUi::Server.new