Support Dancer::Debug at runtime with DANCER_DEBUG=1 env var

This commit is contained in:
Oliver Gorwits
2014-05-21 20:36:00 +01:00
parent ef4a94ae79
commit ffcf6ed099
3 changed files with 20 additions and 3 deletions

View File

@@ -38,9 +38,13 @@ set plack_middlewares => [
pass_through => 1,
)],
# install Dancer::Debug for this...
#[ Debug => (
# panels => [qw/Dancer::Settings Parameters Dancer::Version DBITrace/],
#)],
(
$ENV{DANCER_DEBUG} ?
[ Debug => (
panels => [qw/Dancer::Settings Parameters Dancer::Version DBITrace/],
)]
: ()
)
];
use App::Netdisco::Web;