Permalink
Browse files

only use ShowExceptions in dev

  • Loading branch information...
1 parent 3a2205b commit 0cd08faed625079f8fc534ba7ba37b8d51406bb9 cloudhead committed Feb 6, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 config.ru
View
@@ -2,9 +2,12 @@ require 'toto'
# Rack config
use Rack::Static, :urls => ['/css', '/js', '/images', '/favicon.ico'], :root => 'public'
-use Rack::ShowExceptions
use Rack::CommonLogger
+if ENV['RACK_ENV'] == 'development'
+ use Rack::ShowExceptions
+end
+
# Run application
toto = Toto::Server.new do
#

0 comments on commit 0cd08fa

Please sign in to comment.