Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add in Rack::Bug for kicks

  • Loading branch information...
commit 5eab421258763a93e487104607bde2a2f1ab4f43 1 parent ab1aaa4
@kneath authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 config.ru
View
18 config.ru
@@ -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")
Please sign in to comment.
Something went wrong with that request. Please try again.