From da938a661f38c6740f41e6fd585c2f2054ebc0c0 Mon Sep 17 00:00:00 2001 From: "Paul Buetow (pluto.buetow.org)" Date: Sat, 7 Sep 2013 14:55:22 +0200 Subject: add configdev config --- Xerl/Page/Templates.pm | 1 + configdev-pluto.buetow.org.txt | 24 ++++++++++++++++++++++++ index.pl | 5 +++-- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 configdev-pluto.buetow.org.txt diff --git a/Xerl/Page/Templates.pm b/Xerl/Page/Templates.pm index 53e2a12..8b7c6d1 100644 --- a/Xerl/Page/Templates.pm +++ b/Xerl/Page/Templates.pm @@ -97,6 +97,7 @@ sub parse($) { $config->set_finish_request(1); return undef; } + $xmlconfigreader->parse(); $config->set_xmlconfigrootobj( $xmlconfigreader->get_root() ); diff --git a/configdev-pluto.buetow.org.txt b/configdev-pluto.buetow.org.txt new file mode 100644 index 0000000..f347af8 --- /dev/null +++ b/configdev-pluto.buetow.org.txt @@ -0,0 +1,24 @@ +# TODO: Allow comments behind the options! +# defaultproto will be used if not ENV(HTTPS)==on +#nocache=defined +#nocache=1 +cacheroot=/home/pb/xerl/cache +cookievals=nocache,plain,devel,style,template +sessiondisable=1 +ctype.asc=text/plain +ctype.css=text/css +ctype.jpg=image/jpg +ctype.pdf=application/pdf +ctype.png=image/png +ctype.txt=text/plain +ctype.xml=text/plain +defaultcontent=home +defaulthost=default +defaultoutputformat=xhtml +defaultproto=http +defaultstyle=default.css +defaulttemplate=xhtml +hidesubhome=1 +hostroot=/home/pb/xerl/hosts/ +statsroot=/home/pb/xerl/stats/ +404=http://www.buetow.org diff --git a/index.pl b/index.pl index 985af29..4442648 100755 --- a/index.pl +++ b/index.pl @@ -9,8 +9,9 @@ use Socket; use Sys::Hostname; my $host = hostname(); -my $config = -e "config-$host.txt" ? "config-$host.txt" : 'config.txt'; +my $config = -e "configdev-$host.txt" ? "configdev-$host.txt" : ( + -e "config-$host.txt" ? "config-$host.txt" : 'config.txt' +); my Xerl $xerl = Xerl->new( config => $config ); $xerl->run(); - -- cgit v1.2.3