Permalink
Browse files

Add in Rack::Bug for kicks

  • Loading branch information...
1 parent ab1aaa4 commit 5eab421258763a93e487104607bde2a2f1ab4f43 @kneath committed Dec 13, 2009
Showing with 18 additions and 0 deletions.
  1. +18 −0 config.ru
View
@@ -4,6 +4,24 @@ use Rack::ShowExceptions
require 'lib/watchtower'
+begin
+ require 'ipaddr'
+ require 'rack/bug'
+ require 'rack/bug/panels/mustache_panel'
+
+ use Rack::Bug,
+ :password => nil,
+ :ip_masks => [IPAddr.new("127.0.0.1"), IPAddr.new("::1")],
+ :panel_classes => [
+ Rack::Bug::TimerPanel,
+ Rack::Bug::RequestVariablesPanel,
+ Rack::Bug::MustachePanel,
+ Rack::Bug::MemoryPanel
+ ]
+rescue LoadError
+ puts "=> gem install rack-bug to activate Rack::Bug"
+end
+
# Load configuration and initialize Watchtower
Watchtower.new(File.dirname(__FILE__) + "/config/config.yml")

0 comments on commit 5eab421

Please sign in to comment.