Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add in Rack::Bug for kicks

  • Loading branch information...
commit 5eab421258763a93e487104607bde2a2f1ab4f43 1 parent ab1aaa4
Kyle Neath authored

Showing 1 changed file with 18 additions and 0 deletions. Show diff stats Hide diff stats

  1. 18  config.ru
18  config.ru
@@ -4,6 +4,24 @@ use Rack::ShowExceptions
4 4
 
5 5
 require 'lib/watchtower'
6 6
 
  7
+begin
  8
+  require 'ipaddr'
  9
+  require 'rack/bug'
  10
+  require 'rack/bug/panels/mustache_panel'
  11
+
  12
+  use Rack::Bug,
  13
+  :password => nil,
  14
+  :ip_masks => [IPAddr.new("127.0.0.1"), IPAddr.new("::1")],
  15
+  :panel_classes => [
  16
+    Rack::Bug::TimerPanel,
  17
+    Rack::Bug::RequestVariablesPanel,
  18
+    Rack::Bug::MustachePanel,
  19
+    Rack::Bug::MemoryPanel
  20
+  ]
  21
+rescue LoadError
  22
+  puts "=> gem install rack-bug to activate Rack::Bug"
  23
+end
  24
+
7 25
 # Load configuration and initialize Watchtower
8 26
 Watchtower.new(File.dirname(__FILE__) + "/config/config.yml")
9 27
 

0 notes on commit 5eab421

Please sign in to comment.
Something went wrong with that request. Please try again.