Support Dancer::Debug at runtime with DANCER_DEBUG=1 env var
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
[ENHANCEMENTS]
|
[ENHANCEMENTS]
|
||||||
|
|
||||||
* Support offline update of oui.txt and MIBs bundle
|
* Support offline update of oui.txt and MIBs bundle
|
||||||
|
* Support Dancer::Debug at runtime with DANCER_DEBUG=1 env var
|
||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
|
|||||||
@@ -38,9 +38,13 @@ set plack_middlewares => [
|
|||||||
pass_through => 1,
|
pass_through => 1,
|
||||||
)],
|
)],
|
||||||
# install Dancer::Debug for this...
|
# 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;
|
use App::Netdisco::Web;
|
||||||
|
|||||||
@@ -136,6 +136,18 @@ You are instead recommended to run C<netdisco-web> behind a reverse proxy as
|
|||||||
described elsewhere in this document. Apache can easily act as an SSL reverse
|
described elsewhere in this document. Apache can easily act as an SSL reverse
|
||||||
proxy.
|
proxy.
|
||||||
|
|
||||||
|
=head1 Debug Tricks
|
||||||
|
|
||||||
|
You can see what HTTP Headers are received by Netdisco, and other information
|
||||||
|
such as how it's parsing the config file, by enabling the Dancer debug plugin.
|
||||||
|
First download the plugin:
|
||||||
|
|
||||||
|
~/bin/localenv cpanm --notest Dancer::Debug
|
||||||
|
|
||||||
|
Then run the web daemon with the environment variable to enable the feature:
|
||||||
|
|
||||||
|
DANCER_DEBUG=1 ~/bin/netdisco-web restart
|
||||||
|
|
||||||
=head1 Further Reading...
|
=head1 Further Reading...
|
||||||
|
|
||||||
Other ways to run and host the web application can be found in the
|
Other ways to run and host the web application can be found in the
|
||||||
|
|||||||
Reference in New Issue
Block a user