Skip to content

Commit

Permalink
Add in Rack::Bug for kicks
Browse files Browse the repository at this point in the history
  • Loading branch information
kneath committed Dec 13, 2009
1 parent ab1aaa4 commit 5eab421
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 5eab421

Please sign in to comment.